A single page app to keep track of your tasks easily and categorize them automatically via api requests. Data stored via PostgreSQL.
Built for educational purposes only as part of the Lighthouse Labs Web Development Bootcamp.
- Save Todos to individual profiles via PostgreSQL
- Auto categorize notes via public API queries
- Update and Delete Todos
- Mobile and Desktop View
- Drag and Drop Sorting (experimental)
-Warning- As it stands this App requires an account and access to various APIs from rapidapi.com, as well as uclassify.com and rawg.io. You may still download the repo and run the server, but the external API calls will not work correctly. API keys can be added to your .env file, or APIs can be changed in api.js.
git clone [email protected]:symphony/smart-todo.git && cd smart-todo
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information (This step requires a local SQL Database to be running on your machine. We are using PostgreSQL)
- username:
labber
- password:
labber
- database:
midterm
- Install dependencies:
npm i
- 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
- Run the server:
npm run local
- Note: nodemon is used, so you should not have to restart your server
- Visit
http://localhost:3000/
- See docs/GETTING_STARTED.md for more information
- A database will need to be run and configured to in the .env and lib/db.js file
- Do not edit the
layout.css
file directly, it is auto-generated bylayout.scss
- Split routes into their own resource-based file names, as demonstrated with
users.js
andwidgets.js
- Split database schema (table definitions) and seeds (inserts) into separate files, one per table. See
db
folder for pre-populated examples. - Use the
npm run db:reset
command each time there is a change to the database schema or seeds.- It runs through each of the files, in order, and executes them against the database.
- Note: you will lose all newly created (test) data each time this is run, since the schema files will tend to
DROP
the tables and recreate them.
- Node 10.x or above
- NPM 5.x or above
- axios 0.2x
- express 4.x
- pg 8.x
- chalk 2.x,
- dotenv 2.x
- morgan 1.x
- sass 1.x
- cookie-parser 1.x
- nodemon 2.x
-
Splash Page: Codepen.io
-
Typing Effect: CSS-Tricks.com
-
Sorting Library: jQuery Sortable
-
Contributors: @symphony, @MitchScho, @KellyAtmore
-
Forked from: @Lighthouse-labs/node-skeleton
-
Future plans:
- Save Todos list order in Database
- Improve dragging functionality (fix card being hidden by container)
- More Categories/APIs
- Include more metadata in Todo (ie. hyperlink to product, thumbnail image)
- Sortable Categories
- Better labeling algorithm
- Secure user profiles