This is the Admin Portal for the CeylonMine project, built with Next.js and integrated with Supabase for backend services.
Before you begin, ensure you have met the following requirements:
- Node.js: Version 18.x or later
- npm: Comes with Node.js, used to install dependencies
-
Clone the repository:
git clone https://github.com/Thisal03/project-front.git cd project-front -
Install dependencies:
npm install
-
Environment Setup: Create a
.env.localfile in the root directory and add your Supabase credentials:NEXT_PUBLIC_SUPABASE_URL= NEXT_PUBLIC_SUPABASE_ANON_KEY= JWT_SECRET=
To start the development server, run:
npm run devThe application will be available at http://localhost:3000.
- /app: Contains the main application components and pages
- /components: Reusable UI components
- /api: API routes for handling authentication and data operations
- /styles: Global styles and Tailwind CSS configuration
- Authentication: Secure login and logout using JWT and Supabase
- Role Management: Admins can manage user roles
- Complaints Management: View and manage complaints submitted by users
- Responsive Design: Built with Tailwind CSS for mobile-first design
- Node Module Errors: Delete
node_modulesand runnpm installagain - Build Errors: Delete the
.nextfolder and restart the server - Environment Variables: Ensure
.env.localis correctly configured
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License.
For any inquiries, please contact [thisalinduwara0379@gmail.com].