A simple backend-only web application to showcase "Company Projects" using Django and SQLite3. It provides RESTful APIs to manage and display project data.
- Django REST API for managing company projects
- Summary for project descriptions
- SQLite3 as local development database
- API root endpoint to list all available API routes
- Backend: Python, Django, Django REST Framework
- Database: SQLite3
- Other Tools: Git, Postman or cURL for API testing
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
List all available API endpoints |
| GET | /api/projects |
Retrieve all projects |
| POST | /api/projects/ |
Create a new project |
| GET | /api/projects/<id>/summary |
Summary for a project |
Download and install the latest version of Python from python.org.
Open your terminal or PowerShell and run:
git clone https://github.com/aasthasingh9jan/Company-project
or download as zip file then extract it.
install virtual enviornment
# Install virtualenv (if not already installed)
py -m pip install --user virtualenv
# Create a virtual environment
py -m venv env
# Activate the environment
# On Windows:
env\Scripts\activate
# On macOS/Linux:
source env/bin/activate
Install all required libraries and modules.
pip install -r requirements.txt
move to the directory where manage.py file is saved (use cd command to change directory) and make migrations to database.
python manage.py makemigrations
python manage.py migrate
Run Local server
python manage.py runserver
Now open your browser and enter the url http://127.0.0.1:8000/ or http://localhost:8000/ in your browser to access the app.