Visit either:
npm install
OR yarn
npm run generate
OR yarn generate
npm run prefetch
to generate static contentnpm run dev
OR yarn dev
localhost:3000
main
- but instead specify a new branch by either doing it in your IDE of choice, or via the terminal git switch -c <new_feature>
Before merging to main
, make sure your branch gets built by npm run build
OR yarn build
.
The frontend is built with MVC in mind, where we have detached the models, views and controllers into their own files.
Models are located at src/models
- and is mainly fetches from the backend server and aggregations.
Views are located at src/views
- and is the main container of all other components for the specific view. If you want to change the appearance or state of a page, this is where you do it. Please add your own components to src/components
instead of having them in the view.
Controller are located at src/pages
, src/state
and src/hooks
. Pages are only for connecting the view and controller, whereas state and hooks acts as controllers of the client rendered site.