Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alustau/clinic
This is a simple project about clinic
https://github.com/alustau/clinic
doctor elegance interview ruby rubyonrails simple solid unit-testing
Last synced: about 1 month ago
JSON representation
This is a simple project about clinic
- Host: GitHub
- URL: https://github.com/alustau/clinic
- Owner: alustau
- License: mit
- Created: 2018-04-06T19:26:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T00:36:00.000Z (almost 7 years ago)
- Last Synced: 2024-11-06T13:57:27.905Z (3 months ago)
- Topics: doctor, elegance, interview, ruby, rubyonrails, simple, solid, unit-testing
- Language: Ruby
- Homepage:
- Size: 11.1 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Clinic
=============Clinic is a simple project with goal to practice ruby on rails
## Table of Contents
- [Features](#features)
- [Required](#required)
- [Installation](#installation)
- [Testing](#testing)## Features
* Create a Doctor
* List all Doctors
* Update a Doctor
* Remove a Doctor## Required
* Docker
* Docker Compose## Installation
1- Clone this project running this:
```shell
$ git clone https://github.com/alustau/clinic.git
```
2- Enter in project folder:
```shell
$ cd clinic
```
3- Build the Dockerfile:
```shell
$ docker-compose build
```
4- Boot the app:
```shell
$ docker-compose up
```
5- In another terminal, create database:
```shell
$ docker-compose run web rake db:create
```
6- Run migrations
```shell
$ 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:
```shell
$ docker-compose run web rake test
```