The react-powered webpage of daenen4.de based on next.js
- Make sure you have nvm installed. http://nvm.sh
- Switch to correct node version:
$ nvm install
- Install dependencies:
$ npm install
- Start development server
$ npm run dev
- Open in local browser:
$ open http://localhost:3000
You now have a fully working local development server. All your changes are hot reloaded instantly.
npm run build
- will create a startable distribution of the project. Usually not needed in itself but the basis for turning the app into a static version withnpm run export
npm run export
- will turn the page into static html-pagesnpm start
- start command for the distribution created bynext build
- not needednpm test
- run the e2e-tests in your local browsers. Development-Server must be running for this to worknpm run test:ci
- run the e2e-tests as if on the CI-system in headless chrome. Project must have been exported before.
All data is held in the json
-files in the data
-directory. Take note how the existing data is structured and use it as template for the changes you wish to make.
An updated version is automatically deployed into production whenever you commit into master
.
Tests are run and will stop you if you break any fundamental functionality, but make sure that things look good. Cloudfront-Caches are automatically purged when you deploy, which after a while costs money, so bundle your commits