Frontend of mensatt written in Next.js
This project is licensed under the GNU GPL v3. For more information see LICENSE and DEPLICENSES.
By default you only have rights to view this repository (which you are doing right now).
You can create a branch (for a PR) in two ways:
- By Forking this repo with the
Fork
button on the top of the page. - By Getting write access to this repo
- Create a new branch with a descriptive name based on
main
- Make your change(s)
- Publish your branch in your fork (or this repo if you have write access)
- Create a pull request
- Ensure all checks are passing
Note: You probably need to make changes to accomplish this
- Once all checks are passing, request a review from someone with write access
- Branch can be merged (by rebasing - see section below) once an approving review was given
It was agreed upon to use imperative present-tense commit messages.
Example: Instead of
Added new bugs so we do not run out of work
use
Add new bugs so we do not run out of work
Ideally, use conventional commit style for your commit messages
Similarly to above it was agreed upon to use rebasing as the preferred method for updating and merging branches.
This has a few implications - mainly that only one person should work on a branch at a time and that force pushes become mandatory to update your branch (e.g. when main
has changed since you created your feature-branch).
If you want to get write access (which is not needed to contribute) get in touch with one of the repo admins - they may grant you write access if they see fit.
-
Install dependencies:
yarn
-
As this is only a frontend you need to install and run the backend as well.
Consult the documentation of the backend for further information.
yarn dev
Will start a development server on localhost:3000
.
yarn lint
Will check your local files for linting and style errors and will notify you of found problems.
This is also run before every commit (see section about husky below)
yarn lint-fix
Will try to programmatically resolve linting problems.
- Indentation: 2 Spaces
- Only unix newlines (LF, not CRLF)
- Semicolons are in the source, not inferred
- Newline at the end of every file
We use husky for pre-commit hooks in git, to help with linting. Please run yarn husky install
to install the git hooks.
yarn build
can be used to create a production build that can be started with
yarn start