Coder Social home page Coder Social logo

django-vue's Introduction

Django RESTful SPA based on Vue.js and uses JWT

The project demonstrates the classic TODO list single-page application (SPA).

Front-end side based on the progressive JavaScript framework named Vue.js.

The authentication method implements JSON Web-Token (JWT) by default. Project has custom User model which combined with basic authentication.

Please visit the production version here https://alex-djangovue.herokuapp.com which was deployed on Heroku.

test username: [email protected]

test password: 12345678

alt text

In order to run project to follow next steps:

  1. Clone project and install virtual environment inside root directory:

    python -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    
  2. Then execute Django commands:

    python manage.py makemigrations
    python manage.py migrate
    
  3. Build client SPA:

    npm install --prefix ./project/spa/static/spa
    npm run build --prefix ./project/spa/static/spa
    python manage.py collectstatic --noinput --link
    
  4. Fill database a seed data (edit load_data.cfg for setting up custom values):

    python manage.py load_data
    

Output >>

Cleaning database...
Got number_of_users: 5
Got max_projects_per_user: 5
Got max_tasks_per_user: 5
Got max_likes_per_user: 5
Wait...
Done. Created 5 users, 25 projects, 125 tasks.

Run application by python manage.py runserver 127.0.0.1:9000

Also, for using the email verifier add EMAIL_VERIFIER_API_KEY variable to local environment.

django-vue's People

Forkers

heiye1024

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.