Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
/ TotoListDemo Public archive

A TodoList Demo based on Vue+Koa2/typeorm/mysql/

Notifications You must be signed in to change notification settings

yifanliuu/TotoListDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Todo List Demo

Quick Start

Run the server:

  1. Install dependencies.
cd ./server
npm i
  1. Create database todolistdemo in your Mysql.
  2. Change database settings inside ormconfig.json file.
{
  "type": "mysql",
  "host": "localhost",
  "port": 3306,
  "username": "root",
  "password": "password",
  "database": "todolistdemo",
}
  1. Run npm start command.

Make sure that the server is running on port 3000.


Run the client:

  1. Install dependencies.
cd ./client
npm i
  1. Open another terminal, run npm run serve command.
  2. Open localhost:8000/ in your browser.

Attentions

  • 1. If you are running your server on other ports, you need to change configurations in /client/vue.config.js file:
proxy: {
  '/api': {
    target: 'http://localhost:your_server_port/',
    changeOrigin: true,
    ws: true,
    pathRewrite:{
      '^/api':''
    }
  }
}
  • 2. Make sure your MySQL supports 中文, otherwise you cannot create any todos using 中文.

Features

  1. Add New Task
  • Set task's name, descriptions, labels, deadline. (:TODO lack parameter auth)
  • If you do not complete your task before deadline, youe task would turn to red.
  1. Browse/Edit Present Tasks
  • the same rules as above
  1. Delete Tasks
  2. Change Status of Tasks.
  • from Todo to Done/from Done to Todo

About

A TodoList Demo based on Vue+Koa2/typeorm/mysql/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published