Job-Circle / jcbackend

0 stars 1 forks source link

Django Backend Setup and Running Instructions

This document provides the steps to set up and run the Django backend.

Table of Contents

Prerequisites

Steps to Set Up and Run the Backend

1. Install the Required Packages

Open a terminal and navigate to the project directory. Run the following command to install all required packages listed in requirements.txt:

pip install -r requirements.txt

2. Navigate to the Project Directory

Change directory to the app folder:

cd app

3. Run the Django Development Server

Start the Django development server by running the following command:

python manage.py runserver

4. Test the Routes Using Postman

Ensure that you use the correct endpoints as defined in your Django project.

Routes

Posts Routes

Create Posts

Parameter Type Description
title string Title of the post
content string Content of the post
author string Author of the post
date string Date of the post (optional)