Skip to content

A boilerplate for Django Rest Framework & VueJS with Quasar.

Notifications You must be signed in to change notification settings

JejeDurden/drf-vuejs-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django Rest Framework, VueJS with Quasar Boilerplate

Pre-integrated third parties

  • Djangosimplejwt : JWT library for django
  • drf-yasg : Swagger/OpenAPI 2.0 specs from a Django Rest Framework API
  • AmazonS3
  • Flake8
  • Postgresql
  • Mailjet

Backend install

  • Install postgresql
  • Create test database with the settings in settings.py
    • Connect to posgresql
    • CREATE DATABASE test;
    • \c test;
    • CREATE USER test WITH PASSWORD 'test';
    • ALTER DATABASE test OWNER TO test
    • ALTER ROLE test SUPERUSER
  • virtualenv env and start your virtualenv
  • pip3 install -r requirements.txt to install python dependencies
  • make migrate to install database

Useful Commands

  • make reset_db to start the drop your current database and set up a new one
  • make fake_db to populate your database with fake data
  • make runserver to start the server
  • make shell to start the console

Running Tests

  • Make sure your test file match test*.py
  • Make sure your methods start with test_
  • run make tests

API Documentation

  • run make runserver
  • Go to http://localhost:8000/redoc/ or http://localhost:8000/swagger/
  • Click on authorize and write Bearer *someusertoken* to use protected routes

Useful Links

About

A boilerplate for Django Rest Framework & VueJS with Quasar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published