Dome has undergone significant improvements to become a user-friendly task manager web application with added security measures. Now equipped with a database, users can easily create, modify, view, and remove tasks. The application ensures secure storage of user data, employing bcrypt.js for password hashing and implementing JSON Web Token (JWT) for enhanced authentication during signup and login.
- Node.js : A JavaScript runtime environment used for server-side development.
- Express.js : A backend web application framework for building RESTful APIs with Node.js.
- EJS : A simple templating language that lets you generate HTML markup with plain JavaScript.
- Bootstrap and css : A css framework used for styling the user interface.
- MongoDB : A NoSQL database used for storing tasks and users data.
To run the application locally, follow these steps:
git clone https://github.com/<your-username>/dome.git
cd dome
npm install
Create a file named .env in the root of your project and add the following configuration:
PORT=3000
MONGODB_URL=mongodb://localhost:27017/<your-database-name>
JWT_SECRET=<your-secret-key>
Replace <your-database-name>
with the desired name for your MongoDB database and set a secure value for <your-secret-key>
as the JWT secret.
npm start
For development (using nodemon for automatic restart on file changes):
npm run dev
The application will be accessible at http://localhost:3000 by default. Adjust the port number if needed.