Skip to content

clauswrm/clausmartinsen.no

Repository files navigation

clausmartinsen.no

Code for the personal homepage of Claus Martinsen.

CI status codecov Heroku Uptime Robot ratio (30 days) Dependencies License code style: prettier

This is the code for my personal homepage where I experiment with different technologies for my own fun and learning. The website can be found at https://clausmartinsen.no.

Development

Getting started

The steps needed to start developing on the project are as follows:

git clone https://github.com/clauswrm/clausmartinsen.no.git
cd clausmartinsen.no/
npm install

Now you have a fully functional project for development.

To run the project locally in development mode simply run:

npm start

The default port is 3000.

Commiting and CI

The project uses ESLint and Prettier to make code style and formatting consistent. Tests should also be written whenever possible. This is enforced by CI when code is pushed to the repository. Therefore, before you push your changes, make sure to run the following commands:

npm test
npm run lint
npm run format-check

Make sure they return no errors.

The complete CI configuration is found in node_ci.yml.

Deploying

The project is configured to automatically deploy to Heroku from the master-branch after successful CI. There the project is served using the mars/create-react-app-buildpack.

In a manual deployment, you would need to run npm build to generate the static files and serve them with a web server (like NGINX).

Links

Licensing

The code in this project is licensed under MIT license.