Skip to content

Anujsinghdevx/ProvincialJustice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš–๏ธ Provincial Justice

Provincial Justice is a web application designed to provide users with easy access to Indian laws.
It offers a powerful search system, enabling users to explore criminal laws and their respective provinces quickly and efficiently.


โœจ Features

  • ๐Ÿ” Search Functionality: Find laws instantly using keywords.
  • ๐Ÿ“‘ Organized Categories: Access criminal laws with province-specific details.
  • ๐Ÿ“ฑ Responsive Design: Optimized for both desktop and mobile.
  • ๐Ÿงญ User-Friendly Interface: Clean, minimal, and easy to navigate.

๐Ÿ› ๏ธ Tech Stack

Frontend

  • Next.js (latest version)
  • TypeScript
  • Tailwind CSS

Backend

  • Node.js

Database

  • MongoDB (Atlas + Compass for management)

๐Ÿš€ Getting Started

1. Clone the repository:

git clone https://github.com/Anujsinghdevx/ProvincialJustice

2. Navigate to the project directory:

cd provincial-justice

3. Install dependencies:

npm install

4. Configure MongoDB:

  • Set up a MongoDB Atlas cluster.
  • Create a database named data.
  • Add your collection named laws.
  • Store your connection string in .env.

5. Run the development server:

npm run dev

6. Open in your browser:

http://localhost:3000

๐Ÿ“‚ Folder Structure

provincial-justice/
โ”œโ”€โ”€ public/               # Static assets
โ”œโ”€โ”€ src/                  
โ”‚   โ”œโ”€โ”€ app/              # Application pages
โ”‚   โ”‚   โ”œโ”€โ”€ about/        # About page
โ”‚   โ”‚   โ”œโ”€โ”€ api/          # API routes
โ”‚   โ”‚   โ”œโ”€โ”€ contact/      # Contact page
โ”‚   โ”‚   โ”œโ”€โ”€ privacy/      # Privacy policy page
โ”‚   โ”‚   โ”œโ”€โ”€ support/      # Support page
โ”‚   โ”‚   โ”œโ”€โ”€ globals.css   # Global styles
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx    # Layout component
โ”‚   โ”‚   โ””โ”€โ”€ page.tsx      # Main page
โ”‚   โ”œโ”€โ”€ components/       # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ Footer.tsx    
โ”‚   โ”‚   โ””โ”€โ”€ Navbar.tsx    
โ”‚   โ””โ”€โ”€ lib/              
โ”‚       โ””โ”€โ”€ dbConnect.ts  # MongoDB connection utility
โ”œโ”€โ”€ .env                  # Environment variables
โ”œโ”€โ”€ package.json          # Dependencies and scripts
โ”œโ”€โ”€ next.config.ts        # Next.js configuration
โ”œโ”€โ”€ tailwind.config.js    # Tailwind CSS configuration
โ””โ”€โ”€ tsconfig.json         # TypeScript configuration

๐Ÿ”ฎ Future Enhancements

  • ๐Ÿ”‘ User authentication for personalized experiences.
  • ๐Ÿ“š Expand coverage beyond criminal laws to civil & constitutional laws.
  • ๐Ÿ—‚๏ธ Province/category filters for advanced search.
  • ๐Ÿ“Š Analytics dashboard to track user interactions.

๐Ÿค Contributing

Contributions are welcome!

  1. Fork the repo
  2. Create a new branch:
    git checkout -b feature-name
  3. Commit your changes:
    git commit -m "Add feature-name"
  4. Push to your branch:
    git push origin feature-name
  5. Open a pull request ๐Ÿš€

๐Ÿ“ฌ Contact


โญ If you found this project useful, donโ€™t forget to star the repo!

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors