A simple Django React app to manage slot booking more effectively
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. To deploy this type of app in production see this video
Download this repository or clone it using git
git clone https://github.com/just-a-rookie-2001/Slot-Booking-System
Navigate into the repository
cd Slot-Booking-System
- Configure a postgres database before running the backend
- Navigate to
./backend
- Create a new .env file of the following format
# Django Configuration
export SECRET_KEY = "django secret key"
# Postgres Server Configuration (For database)
export NAME = "your database name"
export PASSWORD = "your database password"
# SMTP Server Configuration (For gmail)
export EMAIL_HOST_USER = "youremail@gmail.com"
export EMAIL_HOST_PASSWORD = "your email password"
- Replace the details with your system credentials. NOTE: Make sure that everything is enclosed in " " or ' ' as shown above
- To change other settings open
./djreact_sbs/settings.py
pip install pipenv
Then navigate to backend directory and launch virtual environment
cd backend
pipenv shell
Finally
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Navigate to the frontend directory and install packages
cd frontend
npm install
Finally start the server
npm start
This project is licensed under the MIT License - see the LICENSE.md file for details