Skip to content

coltenkrauter/brussels

Repository files navigation

GitHub release Release

Brussels

This is a Next.js project bootstrapped with create-next-app.

Getting started with development

# Install deps
npm install

# Run the development server
npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx/jsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts/js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Deployments

CICD platform

This project uses GitHub Actions, a CICD platform that will run our workflows based on certain triggers that are defined in the workflows.

Initial setup

npm run bootstrap

Destination

This project is deployed to AWS.

Infrastructure as Code

We use aws-cdk-lib (Cloud Development Kit) to deploy the infrastructure and application code. Checkout the entrypoint, cdk/bin.ts to see what is happening.

The main way that this application is deployed is thanks to @sls-next/cdk-construct as it really simplifies things.

Maintaining things

Updating npm packages

Keep things fresh with this command,

rm -rf node_modules/  package-lock.json
npx npm-check-updates -u
npm i

Emails