- Python 3.10
- Django 4
- NodeJs 16 or above
- Yarn or NPM
- Virtualenv
- Clone the repo
git clone https://github.com/MuhammadSaim/Checksum-Portal.git checksum-portal- Step into folder
cd checksum-portal- Create virtual environment
python -m venv venv- Activate the venv
For Linux / Mac OS
source venv/bin/activateFor Windows
\path\to\env\Scripts\activate- Install the dependencies
pip install -r requirements.txt- Install the frontend dependencies
If you have yarn
yarn install && yarn devIf you have NPM
npm install && npm run dev-
Copy the .env.example file and make a new file .env
-
configure the MySQL DB with the application in .env file
DATABASE_HOST=YOUR_DB_HOST
DATABASE_NAME=YOUR_DB_NAME
DATABASE_USERNAME=YOUR_DB_USERNAME
DATABASE_PASSWORD=YOUR_DB_PASSWORD
DATABASE_PORT=YOUR_DB_PORT- Now run the migration to create the DB structures
python manage.py migrate- After that create a supper user for the application
python manage.py createsuperuserand fill the required fields.
- Run the application and you are good to go
python manage.py runserver