https://github.com/animesh-ghosh/django-knuckle-snapper-api
An API written in Django as a knuckle-snapping exercise.
https://github.com/animesh-ghosh/django-knuckle-snapper-api
Last synced: about 2 months ago
JSON representation
An API written in Django as a knuckle-snapping exercise.
- Host: GitHub
- URL: https://github.com/animesh-ghosh/django-knuckle-snapper-api
- Owner: Animesh-Ghosh
- License: agpl-3.0
- Created: 2021-11-07T18:58:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-08T18:25:20.000Z (over 3 years ago)
- Last Synced: 2025-02-07T09:44:48.134Z (3 months ago)
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# django-knuckle-snapper-api
An API written in Django as a knuckle-snapping exercise.
## Installation
1. Create and activate the virtual environment:
```bash
python3 -m venv env
source env/bin/activate
```2. Install dependencies:
```bash
pip install -r requirements.txt
```*Note: Dev dependencies can be installed optionally:*
```bash
pip install -r requirements-dev.txt
```3. Run the migrations:
```bash
./manage.py migrate
```4. Run the Django server:
```bash
./manage.py runserver
```## Formatting
Run the following while within the virtual environment shell:
```bash
black ./
```## Loading dummy data
```bash
./manage.py loaddata fixtures.json
```