Mock server
We provide some simple examples on how to set up a mock API so you can work in your localhost
.
Usage in Localhost
Watch videoStep 1: Download resource
- Download resource inside the
README.md
orMOCK_API.md
.
Step 2: Start local server
- Start project
minimal-api-dev
folder. - Make sure you are running on the correct port
http://localhost:7272
.
Step 3:
Update .env
in your current project:
next.js
vite.js
starter-next-ts
starter-vite-ts
- ...
Usage on Production
Step 1:
- Push source code
minimal-api-dev
to your github. - Deploy on your vercel.com.
Step 2:
In next.config.mjs
of minimal-api-dev
.
Step 3:
Update .env
in your current project:
next.js
vite.js
starter-next-ts
starter-vite-ts
- ...