Skip to content

FederationStudios/case-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Case Management System

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.

Features

  • Display cases stored in MongoDB
  • Dark-themed UI to reduce eye strain
  • Scrolling marquee title

Project Structure

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

Prerequisites

  • Node.js installed
  • MongoDB database setup

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/case-website.git
    cd case-website
  2. Install the dependencies:

    npm install
  3. Configure MongoDB connection:

    • Open config.json and replace "your_mongodb_connection_string" with your MongoDB connection string.
    {
      "mongoUri": "your_mongodb_connection_string"
    }
  4. Start the server:

    node server.js
  5. Open your browser and navigate to http://localhost:3000 to see the case management system in action.

File Descriptions

server.js

  • Main server file that sets up the Express application, connects to MongoDB, and defines the route to render the main page.

DBModels/Case.js

  • Mongoose schema for the Case model. Defines the structure and types of data stored for each case.

views/index.ejs

  • EJS template for the main page. Renders the list of cases in an HTML table with a dark theme.

public/css/styles.css

  • Custom CSS for styling the website. Includes styles for the dark theme and marquee title.

config.json

  • Configuration file that stores the MongoDB connection string.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or issues, you can reach out to me:

  1. Name: suman9725
  2. GitHub Username: suman9725
  3. Email: suman9725@staff.irf.red

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published