test-website
Architecture
- Next.js
- React
- Redux
- PostCSS
- CSS Modules
Requirements
node^11.12.0
npm^6.7.0
Quickstart
npm i
npm run dev
Commands
The following npm
commands are available:
npm run build
: builds a static site to/out
npm run lint[:js|css][:auto]
npm run dev
: spins up a dev server atlocalhost:3000
Workflow
We use Gitflow:
- We work on feature branches named
feature/<short-title-of-feature>
(or bugfix branches namedbugfix/<bug-name>
). - When the feature is done, we merge it into
development
with a PR. - When
development
is stable, we merge it intostaging
. qa
is reserved for QA andprod
is for the public.
DevOps
Static Build Process
In development, we're using next
's dev server to host the site.
However, for production, we're using next export
to build out a fully static site that's deployed to Firebase using Gitlab CI/CD pipeline.