Before you begin, ensure you have met the following requirements:
- Python 3.x installed.
- Pip package manager installed.
- A code editor (e.g., VSCode) for development.
- Postman or a similar tool for API testing.
-
Clone the repository:
https://github.com/Pundit4Real/HNGx-s2-Rest-Api-Basic-CRUD.git
-
Create a virtual environment (recommended):
python -m venv venv
-
Activate the virtual environment:
- On Windows: venv\Scripts\activate or .\\Scripts.activate.ps1 - On macOS and Linux: source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
python manage.py makemigrations
..................................
python manage.py migrate
To run the API locally, use the following command:
python manage.py runserver
The API will be available at http://localhost:8000/.
https://documenter.getpostman.com/view/29762619/2s9Yyweeh6