Installation Guide
This guide will walk you through setting up AnimeThemes Web on your local machine.Prerequisites
Before you begin, ensure you have the following installed on your system.
Node.js
AnimeThemes Web requires Node.js 18.0.0 or higher. The project is tested with Node.js 24.x.- Check Version
- Install Node.js
- Using nvm
v18.0.0 or higher.Package Manager
You’ll need one of the following package managers:- npm (comes with Node.js)
- yarn (optional)
- pnpm (optional)
Installation Steps
Install Dependencies
Install all required dependencies using your preferred package manager:This will install all dependencies defined in
package.json, including:- Next.js 15.3.0 - React framework
- React 19.1.0 - UI library
- TypeScript 5.7.2 - Type safety
- styled-components 6.1.14 - CSS-in-JS styling
- @tanstack/react-query - Data fetching and caching
- GraphQL - API query language
- Radix UI - Accessible components
- Motion - Animation library
- And many more…
The
postinstall script will automatically run patch-package to apply any necessary patches to dependencies.Configure Environment Variables
Create a Add the following minimal configuration:See the Configuration page for all available environment variables.
.env.local file in the root directory to configure environment variables:.env.local
Verify Installation
Run the development server to verify everything is set up correctly:Open http://localhost:3000 in your browser to see the application.
If you see the AnimeThemes homepage, congratulations! Your installation is successful.
Optional Setup
Set Up Husky (Git Hooks)
Husky is automatically set up during installation via theprepare script. This enables pre-commit hooks for code quality checks.
Install Recommended VS Code Extensions
For the best development experience, install these VS Code extensions:- ESLint - Code linting
- Prettier - Code formatting
- GraphQL - GraphQL syntax highlighting
- styled-components - CSS-in-JS syntax highlighting
Troubleshooting
Installation fails with permission errors
Installation fails with permission errors
If you encounter permission errors during installation:On macOS/Linux:On Windows:
Run your terminal as Administrator.
Module not found errors
Module not found errors
If you see module resolution errors:
-
Delete
node_modulesand lock files: -
Clear npm cache:
-
Reinstall dependencies:
TypeScript errors
TypeScript errors
If TypeScript shows errors:
-
Run the type checker:
-
Delete the
.nextdirectory: - Restart your development server
Port 3000 already in use
Port 3000 already in use
If port 3000 is already in use, you can:
- Stop the process using port 3000
- Or run on a different port:
API connection issues
API connection issues
If you can’t connect to the API:
- Check your
.env.localfile configuration - Ensure the API URL is correct
- Verify your local API instance is running (if using local API)
- Check your firewall settings
Next Steps
Configuration
Configure environment variables and customize your setup
Development
Learn about the development workflow and available commands
System Requirements
Minimum Requirements
- Node.js: 18.0.0 or higher
- RAM: 2GB minimum
- Disk Space: 500MB for dependencies
- OS: macOS, Linux, or Windows
Recommended Specifications
- Node.js: 24.x LTS
- RAM: 4GB or more
- Disk Space: 1GB or more
- CPU: Multi-core processor for faster builds
Build Dependencies
AnimeThemes Web includes these key development dependencies:- @graphql-codegen - GraphQL code generation
- ESLint - JavaScript/TypeScript linting
- Prettier - Code formatting
- TypeScript - Static type checking
- esbuild - Fast bundler for config files
- ts-node - TypeScript execution
- husky - Git hooks
- patch-package - Package patching
All dependencies are automatically installed when you run
npm install. You don’t need to install them separately.