- Ruby 2.6.5
- Bundler 2.1.4
- Docker and Docker Composer (just needed if you want to run the project easily)
- Rails 6.0.3.1
- Postgresql 10.10 or later
- Redis 3.0 or later
First install docker
$ sudo apt install docker.io$ sudo systemctl start docker$ sudo systemctl enable docker
To check installation, run:
$ sudo docker -v
Then install docker-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose$ sudo chmod +x /usr/local/bin/docker-compose
To check installation, run:
$ docker-compose --version
$ git clone https://github.com/raicg/Fullstack-Developer$ cd Fullstack-Developer$ cp config/database.yml.sample config/database.yml$ cp .env.sample .env$ docker-compose run app bundle exec rake db:create$ docker-compose run app bundle exec rake db:migrate
$ docker-compose build$ docker-compose up$ docker-compose run app bundle exec rails s -b 0.0.0.0
$ git clone https://github.com/raicg/Fullstack-Developer$ cd Fullstack-Developer$ cp config/database.yml.sample config/database.yml$ cp .env.sample .env$ bundle install$ yarn install
To continue you will need to open an postgresql server and update config/database.yml file.
Then:
$ bundle exec rails db:create$ bundle exec rails db:migrate
After this you will need to open an redis server and update the .env file with the redis ip.
And then you will need to open 2 servers, the worker and the web:
$ bundle exec sidekiq -C config/sidekiq.yml$ bundle exec rails s