Installation

Get Centred AI up and running in just a few minutes.

Prerequisites

Before you begin, make sure you have:

  • Node.js 18.x or later
  • npm or yarn package manager
  • A modern web browser

Installation Steps

Clone the repository:

git clone https://github.com/your-org/centred-ai.git
cd centred-ai

Install dependencies:

npm install
# or
yarn install

Set up environment variables:

Create a .env.local file in the root directory:

cp .env.example .env.local

Configure your environment:

NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

Run the development server:

npm run dev
# or
yarn dev

Open your browser:

Navigate to http://localhost:3000 to see your app running!

Verify Installation

To verify everything is working correctly:

  1. Open http://localhost:3000 in your browser
  2. You should see the Centred AI homepage
  3. Try creating an account or logging in

Next Steps

Now that you have Centred AI installed, check out:

Troubleshooting

Port Already in Use

If port 3000 is already in use, you can specify a different port:

PORT=3001 npm run dev

Module Not Found Errors

Try clearing your node_modules and reinstalling:

rm -rf node_modules package-lock.json
npm install

Database Connection Issues

Make sure your Supabase credentials are correct in .env.local and that your Supabase project is running.


Need help? Visit our support page or join our community.