Ifi-ordenen webpage

This is the website of Hennes Majestet Keiserpingvinen den Fornemmes orden. It is using Next.js, Sanity.io, and Vercel.

Setting up local development

Rename the .env.test file to .env and store the environment variables that Next and Sanity will use to pull data from the Sanity API. You can get or create the tokens, ids, and secrets from manage.sanity.io.

Once those env variables are ready, you can run the following commands to get Next's development server up and running:

npm install

# Run the frontend
npm run dev

# Run Sanity Studio
npm run start:sanity

The website will be running at http://localhost:3000, the Studio will run at http://localhost:3333.

Updating webpage

To update ordenen.ifi.uio.no set up a local development and do the following steps:

  • Run npm run build after doing all change
  • Push changes to Git
  • Log in to a Ifi server
  • Run /projects/ifi-ordenen/update.sh