This is a Next.js project for listing movies and anime, utilizing the Jikan API for data retrieval. The project uses MongoDB as its database and Prisma as the ORM. Before running the project, ensure you initialize the environment variables.
- List movies and anime fetched from the Jikan API.
- MongoDB for database management.
- Prisma for ORM.
git clone https://github.com/idmaja/JUST-A.git
cd JUST-A
npm install
Create a .env
file in the root of the project and add the following environment variables:
NEXT_PUBLIC_API_BASE_URL = https://api.jikan.moe/v4
GITHUB_CLIENT = <your_github_client>
GITHUB_SECRET = <your_github_secret>
GOOGLE_CLIENT_ID = <your_google_client_id>
GOOGLE_CLIENT_SECRET = <your_google_client_secret>
NEXTAUTH_SECRET = <your_nextauth_secret>
DATABASE_URL= <your_mongodb_url>
Generate the Prisma client:
npx prisma generate
Run Prisma migrations to set up the database schema:
npx prisma migrate dev
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.js
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To build the application for production, run:
npm run build
Then, to start the production server, run:
npm run dev
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
This project is licensed under the
Feel free to replace your-username
and your-repo-name
with your actual GitHub username and repository name. This README.md
provides a clear and concise overview of your project, its prerequisites, setup instructions, and resources for further learning.