- Clone the repository
- Navigate into next and run
yarn install
- Navigate into sanity and run
yarn install
The frontend is built on Next.js.
The backend is running Sanity.
Code should automatically deploy to Vercel when it gets pushed to GitHub. If you're having trouble getting the code to deploy, try using the Vercel CLI tool. Within the room of the project directory, run
vercel
sanity deploy
Once successful, you can access the backend here: https://selfteachme.sanity.studio/
If you get an error message that says "Unauthorized - Session not found," there's information in the docs on how to resolve this issue, but essentially, you need to run:
sanity logout
sanity login
- Select email / password from the list of options.
- It will launch a web browser where you can login.
- You'll be redirected to the Terminal and should be able to login from there.
- Try running
sanity-deploy
again. - Once successful, you can access the backend here: https://selfteachme.sanity.studio/