devchoplife / django-vue-api

Private API built with Django and Vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIMPLE PRIVATE API BUILT WITH DJANGO AND VUE

This project was built in a windows environment

  • Create a virtual environment
py -m venv ./
  • Activate virtual environment
source ./Scripts/activate
  • Install django
pip install django
  • Start new django project
django-admin startproject djangovueapi
  • Create a new django application
python djangovueapi/manage.py startapp api
  • Migrate database
python djangovueapi/manage.py migrate
  • Run dev server
python djangovueapi/manage.py runserver
  • Create new Vue application in django project root
cd djangovueapi
vue init webpack apifromtend
  • Start Vue server in Vue project directory
cd apifrontend
npm run dev
  • Create empty migration file
python djangovueapi/manage.py makemigrations --empty api

About

Private API built with Django and Vue


Languages

Language:Python 97.0%Language:HTML 1.1%Language:JavaScript 0.9%Language:CSS 0.6%Language:C 0.2%Language:PowerShell 0.1%Language:Vue 0.0%Language:Batchfile 0.0%