Be more productive with this todo list, made with Node.js, Express, Mongoose and EJS as the templating system, using MongoDB as the database.
- Create new todo lists when the need arises.
- Read the contents of your todo list.
- Delete items from the todo list or delete lists as a whole.
- Switch to any list whenever you want.
- View all the lists at one place.
Previous version of this app can be found here.
- Make sure you have Node.js installed in your system. If not download and install from here.
- Clone the repository and then navigate to it.
- Run the command
npm install
in the root directory of the cloned repository to install the dependencies. - Since the database is hosted on MongoDB atlas you will need to have access to a database's user id and password because I ain't giving you mine ;) To get your own follow the steps below.
- Create a free account on MongoDB atlas.
- Create a new cluster. (make sure that all the options you selected are free so you don't have to pay!)
- Create a new user under Database Access, note down the username and password.
- Now under Network Access add a new IP address and enter
0.0.0.0/0
to allow access from anywhere. - Your database setup is now done!
- Now inside the root directory of the project create new file called
.env
and write the username and password that you noted before in that file, use the following format:
DB_USER="yourUsername"
DB_PASS="yourPassword"
- Now finally you are ready to run the app, enter
node app.js
to run it. - Open the url
localhost:3000/
in your favourite browser to use the app.