rihal-website / README.md

Rihal Website

https://rihal.om

Rihal Website

The main branch is deployed directly to https://rihal.om

Developing

This website is built in React using Next.js

To start developing clone this repo, Go to web directory and install the npm packages:

cd src
npm install

You can then start the development environment using:

npm run dev

Design

Design system can be found here

Blogs Feature

This section outlines the implementation and usage of the Blogs feature which has been developed using Sanity.

Sanity Configuration

The configuration for Sanity is located in the following directory: /src/sanity.config.ts. The Blogs Schema can be modified by accessing /src/lib/sanity/schemas

Sanity Studio

Sanity's built-in studio offers a user-friendly interface for content creation. It can be accessed by navigating to the /studio endpoint in your web browser. Only authorized users will have access to Sanity Studio. Once authenticated, users can start creating and managing their blog content.

Preview Mode

For users who wish to preview their blog posts live without publishing, a 'Preview Mode' has been provided. This can be accessed by navigating to the /api/preview endpoint.

Exiting Preview Mode

To exit the 'Preview Mode', users simply need to navigate to the /api/exit-preview endpoint.

Deployment

website is deployed on portainer available on portainer.rihal.tech, however it has the link rihal.om as an A reocrd was added to point to the server running portainer. the dev environemt can be used for testing is hosted on portainer.rihal.dev and has the link website.rihal.dev

  • to update the live version, build and push a newly an image with the "latest" tag
  • to update the dev version, build and push a newly an image with the "test" tag