This project is a simple Case Management System built using Node.js, Express, MongoDB, and EJS. It displays a list of cases stored in a MongoDB database and features a dark-themed UI with a scrolling marquee title.
- Display cases stored in MongoDB
- Dark-themed UI to reduce eye strain
- Scrolling marquee title
case-website/ ├── views/ │ ├── index.ejs # Main view template for displaying cases ├── public/ │ ├── styles/ │ │ ├── styles.css # CSS file for styling the website ├── server.js # Main server file to run the application ├── package.json # Project dependencies and scripts ├── package-lock.json # Exact versions of installed packages └── README.md # Project documentation
- Node.js installed
- MongoDB database setup
-
Clone the repository:
git clone https://github.com/yourusername/case-website.git cd case-website -
Install the dependencies:
npm install
-
Configure MongoDB connection:
- Open
config.jsonand replace"your_mongodb_connection_string"with your MongoDB connection string.
{ "mongoUri": "your_mongodb_connection_string" } - Open
-
Start the server:
node server.js
-
Open your browser and navigate to
http://localhost:3000to see the case management system in action.
- Main server file that sets up the Express application, connects to MongoDB, and defines the route to render the main page.
- Mongoose schema for the Case model. Defines the structure and types of data stored for each case.
- EJS template for the main page. Renders the list of cases in an HTML table with a dark theme.
- Custom CSS for styling the website. Includes styles for the dark theme and marquee title.
- Configuration file that stores the MongoDB connection string.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or issues, you can reach out to me:
- Name: suman9725
- GitHub Username: suman9725
- Email: suman9725@staff.irf.red