Coder Social home page Coder Social logo

emergency_waitlist's Introduction

emergency_waitlist

er diagram is in the db directory.

Running the application

Developers' perspective

  1. Ensure postgres is installed
  2. Create a db in postgres (I created it in pgadmin4 and named the db emergency_waitlist). You can do this by opening pgadmin4 right click where it says databases, then create database and name it whatever you want (I used emergency_waitlist).
  3. Run the schema.sql to create the schema in postgres. I used datagrip to connect to the postgres db and ran the schema.sql file. You can also use pgadmin4 by going into the db > public > right-click tables and click the query tool. You can copy and paste the queries from schema.sql in here and run it to create the schema.
  4. In the seed.sql run all the sql queries in order. I used datagrip (once connected to the db select all lines in the seed.sql file and click run). You can also use pgadmin4 by copy pasting the sql into the query tool from last step and run the new queries by selecting them.
  5. Make sure to change the connection string to your preference matching your postgres db on line 10 in public/index.php
  6. In a terminal tab opened in the public directory run php -S localhost:8888 to start the php server

User Perspective

Ensure the steps from the developer have been run already.

Patient

  1. visit http://localhost:8888/ (replace 8888 with whatever port you ran the php server on)
  2. Enter a patient that is in the queues information as prompted. For example, one of the users from the seeding is Firstname: Tre, lastname: white, code: 123.

Admin

  1. Visit http://localhost:8888/administrator/login (replace 8888 with whatever port you ran the php server on)
  2. Enter a valid admin login. An example is username: admin, password: admin.
  3. You will be redirected to http://localhost:8888/administrator/dashboard where you can see the queue in order, admit patients by clicking the button in their row, and add new patients by filling the form. Note it is assumed that multiple patients can have the same first and last name (as they have a unique integer id assigned to them).

emergency_waitlist's People

Contributors

aiden-garrett avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.