This repo houses the website for Formula Bun, which is hosted at formulabun.club. It runs on NextJS and uses Semantic UI. It's meant to be hosted alongside the Formula Bun API.
- NodeJS v16
- Yarn or npm
Run yarn
/npm i
to install all dependencies.
Run yarn dev
/npm run dev
to run the development server.
content.js
houses text on the site. Files under pages
use the exported content when rendering the page. This keeps text content separate from markup.
Generic elements live in components
. These are normal reactjs components that are reused throughout the site.
Nextjs can render pages before requests are made, turning some pages into static html+css. Use nextjs' features where applicable.
Run yarn build
/npm run build
to generate a production build, yarn start
/npm run start
to start the production build. The Formula Bun API should be running at the same time.