Code Monkey home page Code Monkey logo

todolist-v1's Introduction

Features

  • Add a task

  • Delete a task

  • Done a task

  • Edit a task

  • Sort tasks

Steps to Runserver

Configure Database

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME':'postgres', ## name of your database
        'USER': 'postgres', ## user of your database
        'PASSWORD': 'postgres', ## your password
        'HOST': '',
        'PORT': '5432',
    }
}

Install Modules and Dependencies

  • cd backend
  • sudo pip install -r requirements.txt
  • sudo python manage.py migrate auth
  • sudo python manage.py migrate
  • sudo python manage.py runserver
  • (use sudo python manage.py createsuperuser to create your own superuser)
  • Open the other Terminal
  • cd frontend
  • sudo npm install
  • sudo webpack
  • sudo npm run start

Others

todolist-v1's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

todolist-v1's Issues

关于配置的疑问

  • 没有配置 pg_hb.conf 也能运行(不太清楚怎么配置233,把端口地址加入就好了?)
  • 得运行 python manage.py migrate auth => python manage.py migrate => python manage.py createsuperuser ,不然会报错。

我最近也在学习前后端分离做 todolist ,看了你的代码收获很多,感谢博客分享!

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.