The current development of technology makes it possible to solve absolutely unlimited range of tasks. Every day we exchange information of all kinds, but at this time the modern world is characterized by its oversaturation. Therefore, the received information volume for the day and the plan for the near future can not always "fit" in the head. In the case when there is a lot of incoming information, there is nothing more reasonable than to keep a planner.
Filling out the planner will be a real help for everyone in the series of events to structure them and "put" on the shelves. With such a gift you won't have to "extract information from the corners of your memory" - it's enough just to look into a notebook with daily notes.
The main purpose of the development of "Trainee planner" is to create an important tool that will allow you to conveniently systematize all your affairs and watch the weather. A web-based event management application that is fully meets modern requirements will display events in an easy-to-read manner.
Before we start you must be sure that you have installed:
You can clone an existing repository from GitHub.com to your local computer, or to a codespace:
$ git clone https://github.com/DariaAres/trainee-planner.git-
Change directory to
trainee-planner:$ cd trainee-planner -
Installing dependencies:
$ sudo apt install -yqq libpq-dev $ gem install bundler $ bundle install $ yarn install $ yarn run build
-
You can go to
.envfile to change user and connect to database, whereMYSQL_ROOT_PASSWORDis the password that will be set for the MySQL root superuser account;DB_USERis a username that you created to authenticate in MySQL;DB_PASSWORDis the password with which yourDB_USERcan authenticate:MYSQL_ROOT_PASSWORD=password DB_USER=user DB_PASSWORD=password -
Then you should create the databases defined in the current environment, run pending migrations and fill the current database with data defined in
db/seeds.rb:$ rails db:create db:migrate db:seed
-
This command launches a web server named Puma which comes bundled with Rails:
$ rails s
You'll use this any time you want to access your application through a web browser.
Run with
--helpor-hfor options. -
First of all, you need to build the project into an image file:
$ docker compose build
Now that the project is built, it's time to run it. This step of our work corresponds to the step where, when working with individual containers, the
docker runcommand is executed:$ docker compose up
Run with
--helpor-hfor options.
-
First of all you need to make sure that you have installed all gems:
$ bundle install
Then we can run rspec tests by the following command:
$ bundle exec rspec -
If you have run and built app container, you can execute
bundle exec rspecinside of the container:$ docker exec -it list bundle exec rspec
This code is free to use under the terms of the MIT license.
