This is a simple todo application built using Express.js, Passport middleware, and SQLite as the backend database.
- User authentication using Passport middleware
- Create, read, update, and delete todos
- Mark todos as completed
- User-specific todos
- SQLite database for data storage
Make sure you have the following installed before running the application:
- Node.js and npm
- SQLite database
- Clone the repository: git clone https://github.com/Sxamoecode/TODO_APP.git
- Navigate to the project directory: cd TODO_APP
- Install the dependencies: npm install
- Create a
.env
file in the project root directory and provide the necessary environment variables: PORT=3000 SESSION_SECRET=your_session_secret - Create the SQLite database file: touch database.sqlite
- Run the database migrations to set up the necessary tables: npx sequelize-cli db:migrate
-
Start the application: npm start
-
Open your web browser and navigate to
http://localhost:3000
. -
Register a new user or login with an existing account.
-
You can now create, view, update, and delete todos.
- Express.js: Fast, unopinionated, minimalist web framework for Node.js.
- Passport: Authentication middleware for Node.js.
- SQLite: Self-contained, serverless, and zero-configuration database engine.
- Sequelize: Promise-based ORM for Node.js, used for database management.
Created by Jared Hanson
Modified and completed by Sxamoecode
Check out on TODO_App