Skip to content

idmaja/JUST-A

Repository files navigation

Getting Started

Next.js Movie/Anime List Project

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.

Features

  • List movies and anime fetched from the Jikan API.
  • MongoDB for database management.
  • Prisma for ORM.

Prerequisites

1. Clone the Repository

git clone https://github.com/idmaja/JUST-A.git
cd JUST-A

2. Install Dependencies

npm install

3. Initialize Environment Variables

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>

4. Prisma Setup

Generate the Prisma client:

npx prisma generate

Run Prisma migrations to set up the database schema:

npx prisma migrate dev

5. Running the Development Server

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.

Building for Production

To build the application for production, run:

npm run build

Then, to start the production server, run:

npm run dev

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

License

This project is licensed under the

Creative Commons Attribution-NonCommercial 4.0 International Public License.

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.

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published