This website embodies the idea and exemplifies the use of a proper project file system. Furthermore, it implements the standard for project architecture using the MVC model.Also practices the use of the latest technology in database integration and manipulation.
Table of Contents
- Introduction
- Features
- Getting Started
- Prerequisites
- Installation
- Usage
- Technologies
- Contributing
- License
This web application allows users to manage tasks, including creating, viewing details, and deleting tasks. It's built using MongoDB, Express.js, and Node.js, following the MVC (Model-View-Controller) architectural pattern.
- View tasks on the home page.
- Create new tasks.
- View detailed information about a task.
- Delete tasks.
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed on your machine.
- MongoDB set up with a database for storing tasks.
-
Clone the repository: git clone https://github.com/AyhanAllahverdiyev/Tasks_Website.git
-
Install dependencies:
-
Configure environment variables: Create a
.env
file in the root of the project and add the following: PORT=3000 # Set your desired port number and a connection string for your own mongodb database.(can't provide my own connection string because of obvious reasons and limited database access)
Replace your-database
with your MongoDB database name.
-
Start the server: npm start
-
Access the application: Open your web browser and go to
http://localhost:3000
(or the port you specified).
-
Home Page: Access the home page to view all tasks. You can create a new task by clicking on the "Create Task" button.
-
Create a Task: Click on "Create Task" and fill in the required details. Click "Submit" to create a new task.
-
Task Details: Click on a task to view its detailed information. From here, you can choose to delete the task.
-
Delete a Task: In the task details page, click on "Delete Task" to remove the task. Accessing the MongoDB database and deleting the corresponding document.This was easily done because we used modelling,making the contents of the data highly accessible
- MongoDB: A NoSQL database used to store task information.
- Express.js: A backend framework for handling HTTP requests, routes, and middleware.
- Node.js: A JavaScript runtime environment used for building server-side applications.
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
. - Commit your changes:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature-name
. - Submit a pull request.
This project is licensed under the MIT License.