-
Prerequisites:
node.js,yarn -
Install dependencies with
$ yarn install- Start the development server with
$ yarn next devAny changes should now reflect automatically in your browser
- Deploy by pushing commits to the
masterbranch on GitHub. You can test the production build on your own computer by doing
$ yarn next build
$ yarn next startIf everything works there, it will be fine on the server!
This is using typescript, react and the next.js framework, check their
documentation to find out how to use them. As a note, if you use Visual Studio
Code, it will complain about mistakes or things that don't make sense, as well
as auto-format on save and do the correct syntax-highlighting for TypeScript and
CSS-in-JS.
The pages are in src/pages/..., each imports all the components it uses, so
you never get lost if you "follow the thread".