This is the FE application (NextJS) for Women Coding Community website.
See our Contributing page.
- Node (20+)
- Pnpm (v9+)
If you don't have node, go to their downloads page.
If you don't have pnpm you can install it with npm running
npm install -g pnpm@9Then, install project dependencies
pnpm installNext, create an .env.local file in your root folder. In this file please paste the following:
API_BASE_URL=https://wcc-backend.fly.local/api/cms/v1
API_KEY={your_local_api_key}
This will allow your local to connect to the backend, if you don't yet have an API_KEY please send a message via our dedicated Slack channel. This will never be committed to the github repository.
Now you can run the application using
pnpm devYou can run also these commands pre-commit for your peace of mind. The application uses husky, which will run these same checks before you can commit.
pnpm lint:fix && pnpm format && pnpm type-checkFor running unit tests, you can use this command:
pnpm testUse this one to run playwright (e2e) tests:
pnpm test:e2eFor running e2e tests in a Docker container (recommended for consistency across environments):
pnpm run test:e2e:dockerThis uses Docker Compose to run Playwright tests in an isolated container.
To update visual regression snapshots (when UI changes are intentional):
pnpm run test:e2e:docker:updateThis updates the reference screenshots used in visual tests.
