Mayo Clinic is a Ruby on Rails application, for mobile and desktop devices. There are 3 different users with different privileges. Patients can list all doctors, choose General Practice doctors, choose categories of doctors, make appointments, and track appointments with a calendar. Doctors can list patients who created appointments, get patients' info, and after exams send recommendations. Admin can manage all.
You will be needing:
-
A terminal terminal
-
A code editor
-
Ruby (follow the instructions based on your OS)
https://www.ruby-lang.org/en/documentation/installation/
-
Rails (follow the instructions based on your OS)
https://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project-installing-rails
-
Postgresql (follow the instructions based on your OS)
https://www.postgresql.org/download/
-
The postgres installation doesn't setup a user for you, so you'll need to follow these steps to create a user with permission to create databases. You can skip this if this is not your first time using PostgreSQL
sudo -u postgres createuser <Username>
git clone https://github.com/VuDej/hospital.gitcd hospitalInstall gems with:
bundle installSetup the database with:
rails db:createrake db:createrubocop .In auto-correct mode, RuboCop linters offenses will be automatically fixed:
For rubocop:
rubocop -Arubocop --auto-correct-allStart server with:
rails srails server -p 3001 This will start a server at:
localhost:3000You can paste or type it on url bar
Make sure you have installed gems with:
bundle installThen run all the tests with:
rspec spec- Set up the repository/repositories on GitHub and use Gitflow.
- Set up Postgres for the database
- Create models, controllers and views
- Create unit tests
- Create README
| Languages | ||
|---|---|---|
Contributions, issues, and feature requests are greatly appreciated!
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "improvements".
- Fork the Project
- Create your Feature Branch (git checkout -b feature/yourfeaturename)
- Commit your Changes (git commit -m 'Add suggested feature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Feel free to check the issues page.
Give a βοΈ if you like this project!

