Skip to content

raicg/Fullstack-Developer

 
 

Repository files navigation

UserManager


Setup

Pre-requisites

  • 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

Setup Docker and Docker Composer

First install docker

  1. $ sudo apt install docker.io
  2. $ sudo systemctl start docker
  3. $ sudo systemctl enable docker

To check installation, run: $ sudo docker -v

Then install docker-compose

  1. $ 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
  2. $ sudo chmod +x /usr/local/bin/docker-compose

To check installation, run: $ docker-compose --version

Setup project with docker

  1. $ git clone https://github.com/raicg/Fullstack-Developer
  2. $ cd Fullstack-Developer
  3. $ cp config/database.yml.sample config/database.yml
  4. $ cp .env.sample .env
  5. $ docker-compose run app bundle exec rake db:create
  6. $ docker-compose run app bundle exec rake db:migrate

Running locally with docker

  1. $ docker-compose build
  2. $ docker-compose up
  3. $ docker-compose run app bundle exec rails s -b 0.0.0.0

Setup project without docker

  1. $ git clone https://github.com/raicg/Fullstack-Developer
  2. $ cd Fullstack-Developer
  3. $ cp config/database.yml.sample config/database.yml
  4. $ cp .env.sample .env
  5. $ bundle install
  6. $ yarn install

To continue you will need to open an postgresql server and update config/database.yml file.

Then:

  1. $ bundle exec rails db:create
  2. $ 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:

  1. $ bundle exec sidekiq -C config/sidekiq.yml
  2. $ bundle exec rails s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 73.5%
  • HTML 21.3%
  • JavaScript 3.8%
  • CSS 1.3%
  • Shell 0.1%