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.
- 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.
-
Clone the repository:
git clone https://github.com/EDOHWARES/ADii cd ADii -
Install server dependencies.
cd server npm install -
Install client dependencies.
cd ../frontend npm install -
Setup environment variables.
MONGO_URI= JWT_SECRET= JWT_EXPIRE= ADMIN_PASSWORD= FRONTEND_URL=
-
Run Application.
- Start the server:
cd server npm run server - Start the client"
cd ../frontend npm run dev
- Access the application. Open your browser and navigate to http://localhost:3003 to access the platform.
- 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.
- Frontend: React.js and TailwindCSS.
- Backend: Node.js, Express.js and MongoDB.
- Authentication: JSON Web Tokens (JWT).
- State Management: React Context API.
- Styling: TailwindCSS.
```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
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
This project is licensed under the MIT License. See the LICENSE file for details.