Code for the personal homepage of Claus Martinsen.
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.
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
.
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.
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).
- Project homepage: https://clausmartinsen.no
- Repository: https://github.com/clauswrm/clausmartinsen.no
The code in this project is licensed under MIT license.