arvitaly / appointment-booking

Home Page:https://sheltered-headland-75651.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appointment Booking Test

CI workflow

An application for making an appointment with Drchrono based on Flask and React. Flask is used for backend (views and api). React + Antd is used for frontend-logic and UI.

Install

  1. Activate Python Virtual Environment

Example, for MacOS:

source ./bin/activate
  1. Install Python requirements
pip install -r requirements.txt
  1. Install NodeJS dependencies
npm install
  1. Build the client bundle
npm run build
  1. Create and fill .env file, for example:
DRCHRONO_BASE_URL=https://app.drchrono.com/api
DRCHRONO_OFFICE_ID=305581
DRCHRONO_DOCTOR_ID=287652
DRCHRONO_ACCESS_TOKEN=4t2yCvvnb4TUIUEHFSUDfhDfw

Development

Python server:

flask run

Frontend:

npm run webdev

Webpack will proxy to flask server on port 8000

Testing

npm test

Deployment

There is the file Procfile, so you can deploy this application on Heroku.

About

https://sheltered-headland-75651.herokuapp.com


Languages

Language:TypeScript 67.8%Language:Python 18.1%Language:JavaScript 5.0%Language:HTML 4.5%Language:CSS 4.4%Language:Shell 0.2%