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 clinic3- Build the Dockerfile:
$ docker-compose build4- Boot the app:
$ docker-compose up5- In another terminal, create database:
$ docker-compose run web rake db:create6- Run migrations
$ docker-compose run web rake db:migrate7- Go to http://0.0.0.0:3000/doctors
To run unit test of app, run this command:
$ docker-compose run web rake test