Skip to content

Setup Guide

This guide provides instructions for setting up the AiluroCamp Learning Management System.

Prerequisites

  • Node.js 18 or later
  • npm or yarn
  • Git
  • MongoDB (for development)

Installation

  1. Clone the repository:
1
2
git clone https://github.com/ailurotech/ailurocamp.git
cd ailurocamp
  1. Install dependencies:
1
2
3
npm install
# or
yarn install
  1. Set up environment variables:

Create a .env.local file in the root directory with the following variables:

1
2
3
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
  1. Run the development server:
1
2
3
npm run dev
# or
yarn dev

The application will be available at http://localhost:3000.

Deployment

For deployment instructions, please refer to the GitHub Pages deployment guide.

Deploying to Vercel

AiluroCamp is configured for deployment on Vercel, which offers excellent support for Next.js applications including API routes and server components.

Deployment Steps

  1. Push your code to GitHub

  2. Ensure your repository is up to date on GitHub

  3. Connect to Vercel

  4. Go to Vercel and sign up or log in

  5. Click "Add New..." and select "Project"
  6. Import your GitHub repository
  7. Vercel will automatically detect Next.js settings

  8. Configure Project Settings

  9. Configure environment variables if needed

  10. Leave build settings as default (Vercel auto-detects Next.js)
  11. Click "Deploy"

  12. Access Your Deployed Site

  13. Once deployment is complete, Vercel provides a URL to access your site
  14. You can configure a custom domain in the Vercel project settings

Benefits of Vercel Deployment

  • Full support for Next.js features including API routes and server components
  • Automatic HTTPS
  • Preview deployments for pull requests
  • Easy rollbacks
  • Performance monitoring and analytics
  • Global CDN for fast content delivery

Continuous Deployment

Vercel automatically deploys your site when changes are pushed to your main branch. To enable this:

  1. Ensure your GitHub repository is connected to Vercel
  2. Push changes to your main branch
  3. Vercel will automatically build and deploy the changes