Skip to content

RaphaelApeh/News-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 News API 📰 with django and django rest framework 😍

  • clone
git clone https://github.com/RaphaelApeh/News-API.git
  • Setting a vitual environment
python -m venv venv
  • Activate
  • Windows
.\venv\scritps\activate
  • MacOS or Linux
source bin/scritps/activate
  • Installing requirements
# for development
pip install -r requirements/local.txt
# for production
pip install -r requirements/production.txt
  • Working dir
cd src/
  • .env
DJANGO_DEBUG=True
DJANGO_SECRET_KEY="secret-key"
  • Generate SECRET_KEY
python manage.py shell --command="from django.core.management.utils import get_random_secret_key;print(get_random_secret_key())"

React Frontend ✨

react link

  • Run the development server
python manage.py runserver

About

A News API with posts and comments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published