This is a simple API for the task "Create frontend using React.js".
Clone the repository and put secrets.key
file to config/
directory.
First of all you need to install Docker:
Visit Install Docker for more information.
Also you need to install Docker Compose.
Then execute this command to build the image and run the container:
$ docker-compose up -d
To stop, execute this command:
$ docker-compose stop
You can see the logs by executing this command
$ docker-compose logs -f app
If you do not want to use Docker, you can start the server locally by executing the following commands in the project directory:
$ cp config/database.sample.yml config/database.yml
$ rails db:create db:schema:load
$ rails s
Just visit http://localhost:3000 a few seconds after starting the container.