We are no longer allowed to use wordpress. Therefore, I built this site using next.js.
Even though it is built using next.js, there is a way to include content dynamically, as there is a way to control certain aspects of the site dynamically.
- Blogposts ("news") can be added by adding a simple html file to
./content/gi/news-articles
- Job Postings can be added by adding a simple html file to
./content/gi/jobs
- Other dynamic stuff is controlled via JSON in
./content/gi/page-content
This app uses next.js framework and App-Router. Routes inside the side are given by the directory structure within ./src/app
. Page content is then defined inside the page.js
file.
First, clone this repository.
git clone
Next, install dependencies
npm install
Then, run the development server.
npm run dev
Changes to the site are then visible in real-time in the browser ander localhost:3000
Test what has been changed by creating a production build
npm run lint
If your code has any Errors or warnings, they will then be shown in the console. Fix them in the Source files and run this command again, until the process passes without Errors or Warnings.
npm run start
If everything is okay, you can Deploy.
This app is best deployed via Docker. A Dockerfile is provided, as well as a prebuilt package.
Pushes and Merges on Main will automatically create a new Package. (TODO)
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!