Our system will allow patients to create accounts in order to view the information of each institution such as the services, contact numbers, and others. The user may search for the institution nearest to his/her location and can set an appointment on a specific service offered by the chosen institution. After visiting the institution, the user may also give their feedback and rating on the institution or service. Each institution is handled by an administrator, a member of the staff, who can add, update, or delete the institution’s information and also manage the appointments made. Each institution will also have a database of BFA-accredited products and drugs, showing the function and price, that can be viewed and searched by the regular users and these information will be handled by the administrator.
- Treacy Evangelista
- Mikayla Lopez
- Gabriel Patron
- Juan Gabriel Tamayo
This project"s main dependencies are Python 3, pip3, a virtualenv, Django 1.11, and MySQL. I will cover installation of pip, virtualenvs, Django and how to set up the project. I will not cover MySQL installations. I use a Mac so I"m not 100% sure about Linux installations.
On Linux
$ sudo apt-get update
$ sudo apt-get install python3.6
$ sudo apt-get -y install python3-pip
On Mac
$ brew install python3
$ brew postinstall python3
To check if it works python3 should open up the python shell and pip3 should display all the commands and flags for pip.
What is a virtualenv?
virtualenv is a tool to create isolated Python environments. virtualenv creates a folder which contains all the necessary executables to use the packages that a Python project would need.
$ pip3 install virtualenv
Test installation
$ virtualenv --version
Open your MySQL client and type: CREATE DATABASE medcentermanager_db;
- Go to the directory where you want to clone the project
- Create your virtualenv. I have my envname as the project name "medcentermanager"
$ virtualenv -p python3 envname
-
$ virtualenv -p python3 envname
- cd inside your virutalenv. You should see the following folders inside the virtualenv: bin, include, lib inside
$ cd envname
- Activate the virtualenv. You should see (envname) before your terminal name after typing the following command.
$ source bin/activate
- Clone the repository
$ git clone https://github.com/gabrielchase/CS-165-Medical-Center-Manager.git
- Install the project requirements
$ pip3 install -r requirements.txt
- cd into the folder project and check for the folder with the file "manage.py"
- Make database migrations
$ python manage.py makemigrations
- Migrate the database
$ python manage.py migrate
- Test to see if it"s working. (4 tests should pass)
$ python manage.py test users.tests
- Run the server with:
$ python manage.py runserver
- Install NodeJS + NPM: https://docs.npmjs.com/getting-started/installing-node
- Install bower: https://bower.io/
- Install bower components in your project
$ python manage.py bower install