This project is a study project only, I dedicated my time to improve my skills in NextJS and now I am doing a project to test them.
Before you begin, ensure you have the following tools installed:
Clone this repository to your local machine:
git clone <repository-url>
cd <repository-name>
npm install
Before initializing the project, you need to have a SQL database set up.
- Ensure your database is running.
- Create a database named default or modify the DATABASE_URL variable in the .env file to point to your database.
Create a .env file in the root of the project and add the following environment variables:
DATABASE_URL="mysql://[email protected]:3306/default"
SECRET="UltraSecretToken"
NEXTAUTH_URL="http://localhost:3000"
Run the Prisma migrations to create the tables in your database:
npx prisma migrate dev
The upload server is located in the upload-server folder. To initialize it, navigate to that folder and run:
cd upload-server
node server.js
After initializing the upload server, go back to the root of the project and start the main server:
npm run dev
Now you can access your application at http://localhost:3000.
Banana |
Tysaiw |
Isabelly |
soon.