Skip to content

srijan-nayak/Questo

Repository files navigation

Questo

A Q&A site where anyone with access to the site can post questions and selected admins (domain experts) have access to the CMS to answer them.

Running the project locally

Clone and install dependencies

git clone https://github.com/srijan-nayak/Questo.git
cd Questo
npm install

Configure environment variables

First create a Sanity project and copy the project ID and dataset for the created project. Also, create and copy a robot API token. Then, with the .env.local.example file as a template, create a .env.local file in the project root and replace the values with the previously copied ones.

cp .env.local.example .env.local
# edit .env.local to replace the dummy values with appropriate ones

Configure CORS

Add http://localhost:3000 to the CORS origins of the Sanity project.

Run the dev server

npm run dev

The application will be accessible on localhost:3000.