Clinic is a simple project with goal to practice ruby on rails
- Create a Doctor
- List all Doctors
- Update a Doctor
- Remove a Doctor
- Docker
- Docker Compose
1- Clone this project running this:
$ git clone https://github.com/alustau/clinic.git
2- Enter in project folder:
$ cd clinic
3- Build the Dockerfile:
$ docker-compose build
4- Boot the app:
$ docker-compose up
5- In another terminal, create database:
$ docker-compose run web rake db:create
6- Run migrations
$ docker-compose run web rake db:migrate
7- Go to http://0.0.0.0:3000/doctors
To run unit test of app, run this command:
$ docker-compose run web rake test