-
Clone the Repository
git clone https://github.com/PVBharadwaj/lokarpan-backend.git cd lokarpan-backend -
Install Dependencies
pip install -r requirements.txt
-
Set Environment Variables and Install Django
python -m venv env source env/bin/activate # For Unix/Linux .\env\Scripts\activate # For Windows pip install django
-
Migrate the Models
python manage.py migrate python manage.py makemigrations
-
Ensure Django Rest Framework and CORS-Headers are Installed
If not installed, run the following commands:
pip install djangorestframework pip install django-cors-headers
-
Run the Server
python manage.py runserver
-
Verify Correct Path
Ensure that the path of the browser is correct. Refer to
urls.py->urlPatternsfor the correct path.
The frontend for Lokarpan is available at Lokarpan Website. If the repository is empty, clone the above repo into that folder and follow the steps below.
-
Clone the Frontend Repository
git clone https://github.com/PVBharadwaj/lokarpan-website.git cd lokarpan-website -
Install Dependencies
npm install
-
Start the Frontend Server
npm start
Other Data
Database engine: sqlite3 Django version: 5.0.2