Skip to content
/ ADii Public

This is a platform that provides users with real time prices and trends of commodities in Nigeria, with about 16+ correspondence

Notifications You must be signed in to change notification settings

EDOHWARES/ADii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

78 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ADii - Commodity Trends and Prices Platform

This is a MERN stack application that allows users to view the prices and trends of various commodities across different states in Nigeria. The platform provides up-to-date information to help users make informed decisions based on the latest market data.

The application also includes an admin panel where authorized administrators can manage commodities, update trends and prices, and control other aspects of the platform. Additionally, users can sign up for a newsletter to receive regular updates on commodity trends and prices.

Table of Contents

Features

  • Commodity Price Listings: View the latest prices of various commodities across different states in Nigeria.
  • Commodity Trends: Analyze trends in commodity prices over time.
  • Admin Panel: Manage commodities, prices, and trends (restricted to admins only).
  • User Authentication: Secure login and registration for both users and admins.
  • Newsletter Signup: Users can sign up for a newsletter to get regular updates on commodity trends.

Installation

  1. Clone the repository:

    git clone https://github.com/EDOHWARES/ADii
    cd ADii
    
  2. Install server dependencies.

    cd server
    npm install
    
  3. Install client dependencies.

    cd ../frontend
    npm install
    
  4. Setup environment variables.

    MONGO_URI=
    JWT_SECRET=
    JWT_EXPIRE=
    ADMIN_PASSWORD=
    FRONTEND_URL=
    
  5. Run Application.

  • Start the server:
    cd server
    npm run server
    
  • Start the client"
    cd ../frontend
    npm run dev
    
  1. Access the application. Open your browser and navigate to http://localhost:3003 to access the platform.

Usage

  • User Dashboard: View commodity prices and trends.
  • Admin Panel: Log in as an admin to manage commodities and trends.
  • Newletter: Sign up with your email to receive updates.

Technologies

  • Frontend: React.js and TailwindCSS.
  • Backend: Node.js, Express.js and MongoDB.
  • Authentication: JSON Web Tokens (JWT).
  • State Management: React Context API.
  • Styling: TailwindCSS.

Project Structure

```bash
ADii/
β”‚
β”œβ”€β”€ frontend/              # React frontend
β”‚   β”œβ”€β”€ public/            # Public files
β”‚   └── src/               # Source files   
        |__ assets         # assets   
β”‚       β”œβ”€β”€ components/    # React components
β”‚       β”œβ”€β”€ context/       # React context for state management
β”‚       β”œβ”€β”€ pages/         # Application pages
β”‚       └── main.jsx      # Application entry point
β”‚
└── server/                # Node.js backend
    β”œβ”€β”€ config/            # Configuration files
    β”œβ”€β”€ controllers/       # Route controllers
    β”œβ”€β”€ models/            # Mongoose models
    β”œβ”€β”€ routes/            # API routes
    β”œβ”€β”€ middleware/        # Express middleware
    └── server.js          # Application entry point

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

- Fork the repository
- Create your feature branch: git checkout -b feature/my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin feature/my-new-feature
- Submit a pull request

License

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

About

This is a platform that provides users with real time prices and trends of commodities in Nigeria, with about 16+ correspondence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages