vinylstyle / django-demo

This is a demo application using Django.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

  • Django
  • Django REST Framework

Directory Structure

  • / - Django Project
  • /api_todo - Todo API
  • /app - Django app
  • /frontend - React/Tailwind
  • /website - Django Project Configurations

Initialize migrations

Execute this command to initialize the system tables.

  • python manage.py makemigrations api_todo
  • python manage.py migrate

Create an admin user

Execute this command to create an admin user.

python manage.py createsuperuser

Building React/Tailwind

Go into /frontend and run these commands.

  1. npm install
  2. npm run build

Running server

After installing Django, execute this command to start the server.

python manage.py runserver

Accessing functionality

About

This is a demo application using Django.


Languages

Language:Python 90.4%Language:JavaScript 5.3%Language:HTML 3.7%Language:CSS 0.5%