- Ruby
- Rails
- ReactJS
- Sqlite
- PWA
- Docker
- NodeJs
- Yarn
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You must have installed on your machine:
- Node
- NPM
First step is to install the node:
# Using Ubuntu
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs
# Using Debian, as root
# curl -sL https://deb.nodesource.com/setup_10.x | bash -
# apt-get install -y nodejs
For test if the service was installed with succeed, you can run the command for to check de version of Node:
$ node -v
# Must be have the node version: v10.14.0
$ npm -v
# Must be have the npm version: 6.14.4
Follow the instructions to have a project present and able to run it locally. After copying the repository to your machine, go to the project's root site and:
- Construct the container
$ docker-compose build
- Create of Database, migrations and seed
$ docker-compose run --rm app bundle exec rails db:create db:migrate db:seed
- Run the project
$ docker-compose up - d
- In the Other tab run de command
#Hot reload react
$ docker-compose exec app bin/webpack-dev-server