REZ.
Demo
REZ is a request bin which allows you to easily send HTTP requests to a custom endpoint and analyze various data. It was designed to help developers debug and test APIs.
-
Clone repo
git clone https://github.com/rodatboat/request-bin.git
-
Install dependencies
cd ./ npm install
cd ./server npm install
-
Set up environment variables
DB_URI = API URL
APP_URI = Client URLcd ./ VITE_DB_URI=http://localhost:5000 VITE_APP_URI=http://localhost:3000
MONGO_URL = Mongo connection
cd ./ MONGO_URL=mongodb://localhost:27017/rez_db
-
Start the development server
cd ./ npm run dev
cd ./server npm run start
-
Generate a full static production build
npm run vercel-build
-
Preview the site as it will appear once deployed
npm run preview
-
When deploying to vercel, set Client Output Directory to
dist/client
-
When deploying to vercel, set API Root Directory to
server/