Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.58 KB

README.md

File metadata and controls

48 lines (36 loc) · 2.58 KB

Todoo-List-2.0


Be more productive with this todo list, made with Node.js, Express, Mongoose and EJS as the templating system, using MongoDB as the database.



Features

  • 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.

Build Instructions

  1. Make sure you have Node.js installed in your system. If not download and install from here.
  2. Clone the repository and then navigate to it.
  3. Run the command npm install in the root directory of the cloned repository to install the dependencies.
  4. 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!
  5. 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"
  1. Now finally you are ready to run the app, enter node app.js to run it.
  2. Open the url localhost:3000/ in your favourite browser to use the app.