First, install all dependencies by running.
yarn installSecond, run the development server:
yarn devThird, run the backend server:
cd tik-tok-backendThen run the following in the command line or terminal
sanity startTo run development, click on http://localhost:3000 to redirect to your browser to see the result. Recommended browser is Google Chrome.
To run backend development, click on http://localhost:3333 to redirect to your browser to see the result. Recommended browser is Google Chrome. Login to your project on Sanity.io to get started.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.
The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.