https://github.com/raphaelapeh/news-api
A News API with posts and comments
https://github.com/raphaelapeh/news-api
django django-rest-framework newsapi
Last synced: 4 months ago
JSON representation
A News API with posts and comments
- Host: GitHub
- URL: https://github.com/raphaelapeh/news-api
- Owner: RaphaelApeh
- Created: 2024-12-18T03:37:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-12T21:08:24.000Z (4 months ago)
- Last Synced: 2025-02-12T22:22:55.454Z (4 months ago)
- Topics: django, django-rest-framework, newsapi
- Language: Python
- Homepage:
- Size: 2.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**🌐 News API 📰 with django and django rest framework 😍**
- **clone**
```bash
git clone https://github.com/RaphaelApeh/News-API.git
```
- __Setting a vitual environment__
```bash
python -m venv venv
```
- Activate
* Windows
```bash
.\venv\scritps\activate
```
* MacOS or Linux
```bash
source bin/scritps/activate
```
- **Installing requirements**
```bash
pip install -r requiremets.txt
```
- Working dir
```bash
cd src/
```
- **.env**
```python
DJANGO_DEBUG=True
DJANGO_SECRET_KEY="secret-key"
```
- Generate `SECRET_KEY`
```bash
python manage.py shell --command="from django.core.management.utils import get_random_secret_key;print(get_random_secret_key())"
```
- **Run the development server**
```bash
python manage.py runserver
```