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.
- Activate Python Virtual Environment
Example, for MacOS:
source ./bin/activate
- Install Python requirements
pip install -r requirements.txt
- Install NodeJS dependencies
npm install
- Build the client bundle
npm run build
- 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
Python server:
flask run
Frontend:
npm run webdev
Webpack will proxy to flask server on port 8000
npm test
There is the file Procfile
, so you can deploy this application on Heroku.