Register an application at Microsoft Azure Portal and put the configuration at client/src/authConfig.js To run a development server at http://localhost:5173/:
cd client/
npm install
npm run devDeploy with:
cd client/
netlify deploy --prodCreate a server/.env file containing the following:
DATABASE_URL="mongodb+srv://<username>:<password>@<connection_url>/<database_name>"
AUDIENCE="<application_id>"To run a development server at http://localhost:8800/:
cd server/
npm install
npm run startDeploy with:
cd server/
pm2 start index.jsAfter changes to the schema:
npx prisma generatelimit_req_zone $binary_remote_addr zone=ip:10m rate=5r/s;
server {
http2 on;
server_name api.alloc8.in;
location / {
limit_req zone=ip burst=12 delay=8;
proxy_pass http://localhost:8500;
}
}
VITE_SERVER_URL="https://api.alloc8.in"