My implementation of To-Do List module of Learners Guild curriculum.
A full-stack single-page CRUD web application where users can:
- create tasks,
- edit the text of a task,
- check tasks as completed,
- undo completed task(check it as not completed),
- delete tasks,
- filter tasks (view all, or only current, or only completed ones),
- delete all completed tasks in bulk,
- toggle all tasks (check them all as completed or as not completed)
- using Express.js
- building RESTful APIs using Express
- using Postgres to persist data in database
- writing basic SQL queries
- using Fetch API to make HTTP requests
- using
contenteditable
attribute of HTML - using Mocha, Chai and chai-http for unit and intergration tests (db queries and routes)
https://todolist-mira.herokuapp.com/
These instructions are for getting a copy of the project on your local environment.
- Clone/Fork -
git clone https://github.com/Maxmi/TodoList-App.git
- Install npm packages -
npm install
- Create database and tables -
npm run db:init
(make sure you don't have a db namedtodolistapp
as this command will delete it)
- Run
cp .env.template .env
command in the terminal to create your own.env
file and enter your config values in the.env
file
- Run
npm start
- To access the app go to
http://localhost:3000
- Run
npm test