-
Notifications
You must be signed in to change notification settings - Fork 20
Installation
Mohit ahlawat edited this page Oct 12, 2025
·
1 revision
This guide will walk you through setting up AniNotion on your local machine for development.
- Node.js: Version 18 or higher.
- MongoDB: Version 4.4 or higher.
- npm or yarn.
-
Clone the repository:
git clone https://github.com/mohitahlawat2001/AniNotion.git cd AniNotion -
Install dependencies: This will install dependencies for the root, frontend, and backend packages.
npm install
-
Set up environment variables: Copy the example environment files for both the frontend and backend.
# Backend environment cp aninotion-backend/.env.example aninotion-backend/.env # Frontend environment cp aninotion-frontend/.env.example aninotion-frontend/.env
-
Configure your environment: Edit
aninotion-backend/.envwith your local configuration and API keys.MONGODB_URI=mongodb://localhost:27017/aninotion JWT_SECRET=your-super-secret-jwt-key GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret CLOUDINARY_CLOUD_NAME=your-cloudinary-name CLOUDINARY_API_KEY=your-cloudinary-key CLOUDINARY_API_SECRET=your-cloudinary-secret
-
Initialize the database: Run the seed script to populate the database with initial data.
npm run seed npm run migrate:v0.5
-
Start the development servers: This command starts both the frontend and backend servers concurrently.
npm run dev
- Frontend will be available at
http://localhost:5173. - Backend will be available at
http://localhost:5000.
- Frontend will be available at
-
npm run dev: Start both frontend and backend in development mode. -
npm run server: Start only the backend server. -
npm run client: Start only the frontend client. -
npm run seed: Seed the database with initial data.
-
npm run start: Start the backend server. -
npm run migrate: Run database migrations. -
npm run backup: Create a database backup.
-
npm run build: Build the frontend for production. -
npm run preview: Preview the production build locally.