Smart To Do List is a multi-page app that uses Open AI to automatically categorize your tasks for you.
This app was designed as a Midterm project by Sarah Moss, Billy Wong, and Caitlin Croteau for Lighthouse Labs' Web Development program.
- Create a new repository using this repository as a template.
- Clone your repository onto your local device.
- Install dependencies using the npm install command.
- Fix to binaries for sass:
npm rebuild node-sass
- Reset database:
npm run db:reset
- Check the db folder to see what gets created and seeded in the SDB
- Create the .env by using .env.example as a reference.
- Configure your .env file with your correct local information.
- In order to access OpenAI's API, you will need to get a key and add it to the .env file.
- Start the web server using the npm run local command. The app will be served at http://localhost:8080/
- Go to http://localhost:8080/ in your browser.
- Node 10.x or above
- NPM 5.x or above
- PG 6.x
- Express
- Bcrypt
- Chalk
- Cookie-session
- Dotenv
- EJS
- Method-override
- Morgan
- OpenAI
- SASS
- View all of your lists.
- Create a new list, by clicking the plus sign icon on the bottom of the page.
- Delete a list, by clicking on the trash bin icon next to the list you wish to delete.
- Vist an individual list page, by clicking on the list name.
- View all tasks connected to the list.
- Create a new task, by clicking the plus sign icon on the bottom of the page.
- Delete a task, by clicking on the trash bin icon next to the task you wish to delete.
- Edit a task name, by clicking on the note pad icon next to the task you wish to edit.
- Deselect a task, by clicking the checkbox next to the task. In future versions of the app, this will 'cross' the task off your list.
OpenAI's API will automatically categorize each task for you when the task is created. When the task is edited, the AI will update the task category if required.
Tasks are organized into one of four categories in the database and are labelled with one of the four corresponding category icons:
- Burger: Restaurants or Cafes to visit or things to eat.
- Shopping Cart: Products to buy.
- Screen: Films or TV Series to watch.
- Book: Books to read.