- Node.js (v18 or later)
- pnpm (v8 or later)
-
Navigate to the project directory:
cd frontend/content_chooser
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm start
The development server will start and automatically open your browser to http://localhost:1234
.
pnpm start
- Starts the development serverpnpm build
- Builds the project for production
This project is automatically deployed to GitHub Pages whenever changes are pushed to the main
branch. The deployment process is handled by GitHub Actions.
- When changes are pushed to the
main
branch, the GitHub Actions workflow is triggered - The workflow:
- Sets up Node.js v18
- Installs pnpm v8
- Installs project dependencies
- Builds the project
- Deploys the built files to GitHub Pages
You can also trigger a manual deployment by:
- Going to the "Actions" tab in your GitHub repository
- Selecting the "Deploy to GitHub Pages" workflow
- Clicking "Run workflow"
The deployment is configured in .github/workflows/deploy.yml
. The workflow:
- Uses GitHub Pages for hosting
- Builds the project using pnpm
- Deploys the contents of the
frontend/content_chooser/dist
directory
Once deployed, your site will be available at coremedia.github.io