This is the official website for the Code School of Guam, built using Next.js, React, and Tailwind CSS.
Before you begin, ensure you have the following installed on your local machine:
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
To get the application running locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/code-school-of-guam.git cd code-school-of-guam -
Install the dependencies:
npm install
-
Create a
.env.localfile in the root directory and add the following environment variables:PINECONE_API_KEY=your_pinecone_api_key PINECONE_INDEX=csg-knowledge OPENAI_API_KEY=your_openai_api_key OPENROUTER_API_KEY=your_openrouter_api_key # Optional analytics NEXT_PUBLIC_POSTHOG_KEY=your_posthog_key NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.comReplace the values with your actual chatbot and analytics credentials.
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the result.
To create a production build, run:
npm run buildThis will create an optimized production build in the .next folder.
This project is configured for deployment on Netlify. The netlify.toml file in the root directory contains the necessary configuration.
To deploy:
- Push your changes to your GitHub repository.
- Netlify will automatically deploy your site when changes are pushed to the main branch.
app/: Contains the main pages and layout components.components/: Reusable React components.public/: Static assets like images and the manifest file.styles/: Global CSS styles.
- Responsive design
- AI chatbot for admissions and program questions
- Flappy Bird game demo
- Contact form with EmailJS integration
- FAQ accordion
If you'd like to contribute to this project, please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.