Skip to content

Emceelamb/django-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Rest Framework + Next.js + Tailwind

This is a simple Django Rest Framework with Next.js front-end implementation of a Todo app. It has CRUD operations for Django APIs and API wrappers in Next.js.

The running the next server in development mode will proxy requests to /api to port 8000.

Includes the following:

Backend:

  • Django
  • Django Rest Framework

Frontend:

  • Next.js
  • Tailwind 3

Development instructions

  1. Clone repository
  2. Create virtualenv and activate
python -m venv .venv
source .venv/bin/activate
  1. Install Python requirements:
pip install -r requirements.txt
  1. Set up DB
python manage.py makemigrations api
python manage.py migrate

Running the API locally

python.manage.py runserver

The backend server will running on http://localhost:8000 and the admin page is available at http://localhost:8000/admin

Setting up Front End

In a new shell cd into www/ and install JavaScript dependencies.

cd www
npm install

Running the UI locally

npm run dev

The UI should be running on http://localhost:3000.

About

Django Rest Framework + Next

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published