This is a static site generator (SSG), which can be used for creating porfolio website. Example website can be found on reippainen.com. The SSG is implemented using Next.js and Typescript, uses Contenful as its CMS and the example website itself is hosted on Netlify.
Before starting, set the Contentful access token, host, space id and the website id as environment variables, which can be found on Contenful. The easiest way to set environment variables is to copy the .env.example file and name it as .env
After setting the environment variables, the development server can be started by running:
yarn install
yarn run devThe development server is running now on http://localhost:3000
You may also try running the server on production mode:
yarn build
yarn export
# Serve must be installed globally
serve -s outThe server should now be running on http://localhost:5000
Deploying example portfolio website can be done by merging a pull request to main branch. Netlify will deploy new changes automatically after PR is accepted.