Skip to content

alustau/clinic

Repository files navigation

Clinic

Clinic is a simple project with goal to practice ruby on rails

Table of Contents

Features

  • Create a Doctor
  • List all Doctors
  • Update a Doctor
  • Remove a Doctor

Required

  • Docker
  • Docker Compose

Installation

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

Testing

To run unit test of app, run this command:

$ docker-compose run web rake test