Mathlet is a project by Christian and Philip. This project is built using Astro.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js (version 18 or higher).
- You have installed pnpm (version 7.1.0 or higher).
-
Clone the repository:
git clone https://github.com/yourusername/mathlet.git cd mathlet
-
Install dependencies:
pnpm install
To start the development server, run:
pnpm run dev
To build the project, run:
pnpm run build
To preview the build, run:
pnpm run preview
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro
or .md
files in the src/pages/
directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/
, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
- astro.config.mjs: Configuration file for the Astro project.
- tsconfig.json: TypeScript configuration file.
- .vscode/launch.json: Configuration for running the development server in Visual Studio Code.
The project is set up to deploy to GitHub Pages using a GitHub Actions workflow. The configuration can be found in .github/workflows/deploy.yml
.