This is the backend part of the Coderr project, built with Django to run the freelance marketplace tool in the frontend.
- You need to have Python installed to run this project.
-
Clone the Frontend and Backend Projects
- Clone this backend project.
- Clone the frontend project as well (find the frontend here).
-
Create a Virtual Environment
- In the project root, create a virtual environment:
python -m venv env
- Activate the virtual environment:
- On Windows:
env\Scripts\activate
- On macOS/Linux:
source env/bin/activate
- On Windows:
- In the project root, create a virtual environment:
-
Install Dependencies
- Install all the requirements listed in the
requirements.txt
file:pip install -r requirements.txt
- Install all the requirements listed in the
-
Set Up SECRET_KEY
- You need a unique
SECRET_KEY
for your Django instance. Generate one by running:python from django.core.management.utils import get_random_secret_key print(get_random_secret_key())
- Create a file named
.env
in thecoderr_backend
folder and add your generated key as follows:SECRET_KEY='your_generated_secret_key'
- You need a unique
-
Run Migrations
- Apply migrations to set up the database:
python manage.py makemigrations python manage.py migrate
- Apply migrations to set up the database:
-
Start the Server
- Start the Django server:
python manage.py runserver
- Start the Django server:
-
Guest Login Setup
- To enable guest login, create two guest users using the credentials provided in the frontend project.
- For details on setting up the guest login, refer to the frontend README (available here).
Your backend server should now be up and running, ready to support the Coderr frontend. Enjoy exploring and customizing the project!