- React.js
- Redux
- Material-UI
- Node + Express
- MySQL
- Install MySQL
- Load file mysql_start.txt
To query the database we recommend MySQL Workbench https://www.mysql.com/products/workbench/
Setup:
cd client
yarn install
- copy
.env.sample
into.env
and fill in credentials
To run:
yarn start
ornpm run dev
- Open http://localhost:3000
Setup:
cd server
yarn install
- copy
.env.sample
into.env
and fill in credentials - Make sure your database is running on your machine
To run:
yarn dev
ornpm run dev
for development,yarn start
for production- API end point would be
http://localhost:5001
- In Visual Studio Code install the Prettier extension.
- Go to Code -> Settings -> Preferences, search for
editor.formatOnSave
, set to True.
- Login page for doctors/clients http://localhost:3000/login_client
- Use email [email protected] password 12345678
- Use these credentials so you will see the correct demo data.
If you get an error "Client does not support authentication protocol requested by server" then
alter user 'root'@'localhost' identified with mysql_native_password by '12345678'
- Login page for patients http://localhost:3000/login/ultrawellness
- Use email [email protected] password 12345678
- Use these credentials so you will see the correct demo data.
- Login page for patients http://localhost:3000/signup/ultrawellness
To test email notifications (only for development):
- Get
username
andpassword
fromhttps://ethereal.email/create
- Check emails on
https://ethereal.email/messages
We would like to follow the following folder and file structure.
app
├── config
│ └── routes.js
├── screens
│ └── App
│ ├── components
│ ├── screens
│ │ ├── Admin
│ │ │ ├── components
│ │ │ ├── screens
│ │ │ │ ├── Reports
│ │ │ │ │ ├── components
│ │ │ │ │ ├── stores
│ │ │ │ │ │ └── ReportsStore.js
│ │ │ │ │ └── index.js
│ │ │ │ └── Users
│ │ │ │ ├── components
│ │ │ │ └── index.js
│ │ │ ├── shared
│ │ │ │ └── stores
│ │ │ │ ├── AccountStore.js
│ │ │ │ └── UserStore.js
│ │ │ └── index.js
│ │ └── Course
│ │ ├── components
│ │ ├── screens
│ │ │ └── Assignments
│ │ │ ├── components
│ │ │ └── index.js
│ │ └── index.js
│ ├── shared
│ │ └── components
│ │ ├── Avatar.js
│ │ └── Icon.js
│ └── index.js
├── shared
│ └── util
│ └── createStore.js
└── index.js