A todo application made with Handlebars while using a sqlite3 database.
This is a TODO application that allows users to manage their tasks and categories. Users are required to log in to access their personalized todos and categories. The application also provides features to generate QR codes for sharing todos based on categories or all todos. Additionally, users can send all their todos via email. Users will receive email notifications when they add a new todo or category to their account.
This application is built using Node.js, Express, and SQLite3. The application is structured using the MVC pattern, and the database is managed using Knex.js. The application also uses the nodemailer package to send emails to users.
The application also provides an API for users to manage their todos and categories. Users can perform CRUD operations on todos and categories by sending requests to the appropriate endpoints.
git clone https://github.com/meesakveld/to-do-application.git
npm install
npx knex migrate:latest
npx knex seed:run
PORT=3000
DATBASE_TYPE=sqlite
DATABASE_NAME=your-database-name.sqlite3 #Replace with the name of your database
NODE_ENV=development
TOKEN_SALT=your-token-salt #Replace with your token salt
MAIL_USER=your-email #Replace with your email
MAIL_PASS=your-email-password #Replace with your email password
npm run start:dev
http://localhost:3000/api/auth/login
with their credentials. They will receive a bearer token in the response, which they should include in the headers of subsequent requests.http://localhost:3000/api/todo
. They can use GET to retrieve all todos, POST to create a new todo, PATCH to update an existing todo, and DELETE to delete a todo.http://localhost:3000/api/category
. They can use GET to retrieve all categories, POST to create a new category, PATCH to update an existing category, and DELETE to delete a category.To access the todo and category endpoints, users need to include the bearer token in the headers of their requests that they got from the login endpoint.
This project was created by Mees Akveld for the Programming 3 course at Artevelde University of Applied Sciences.