https://github.com/sajed-zarrinpour/o-lab-mentorshipbookingsample
https://github.com/sajed-zarrinpour/o-lab-mentorshipbookingsample
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sajed-zarrinpour/o-lab-mentorshipbookingsample
- Owner: sajed-zarrinpour
- License: mit
- Created: 2025-04-05T06:35:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-05T06:50:09.000Z (3 months ago)
- Last Synced: 2025-04-05T07:27:54.655Z (3 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# o-lab-mentorshipbookingsample
To run This project you need to set up and run two components:
#### Back-end server
```
cd api
python3 manage.py runserver
```
This runs the django backend server at 127.0.0.1:8000.
Please make sure you have installed python3, django framework and django-cors
```
python3 -m pip install django-cors-headers
```#### Front-end server
```
cd client
npm install
npm run dev
```## Bonous
Everytime you book, an E-mail notification is sent to the mailtrap account.
I used my own mailtrap account, you can use your credentials by setting them up at `api/api/settings.py` with setting the following keys:```
# mailtrap settings
...
EMAIL_HOST_USER = 'your user key'
EMAIL_HOST_PASSWORD = 'your password key'
...
```## Important Notice
Please visit [http://localhost:3000](http://localhost:3000) to test the application. Django developement server seems to have trouble mapping IP (127.0.0.1) to domain name (localhost). If you use IP, most likely you will experience denial by django CORS.