- Install dependencies.
cd ./server
npm i
- Create database
todolistdemo
in your Mysql. - Change database settings inside
ormconfig.json
file.
{
"type": "mysql",
"host": "localhost",
"port": 3306,
"username": "root",
"password": "password",
"database": "todolistdemo",
}
- Run
npm start
command.
Make sure that the server is running on port 3000.
- Install dependencies.
cd ./client
npm i
- Open another terminal, run
npm run serve
command. - Open
localhost:8000/
in your browser.
- 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 中文.
- 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.
- Browse/Edit Present Tasks
- the same rules as above
- Delete Tasks
- Change Status of Tasks.
- from
Todo
toDone
/fromDone
toTodo