Demo link - https://starbakery.netlify.app/ (Discontinued 😞) (Ran out of free trail on Google cloud)
Frontend hosted on the Netlify platform, backend is hosted on the Google Cloud Platform as a Cloud Run deployment (Which is a containerized deployment).
Requirements to run the backend
.env file with the following data.
PORT = 4000
MONGO_URI = ''
PORT can be modified as per the liking, MONGO_URI can be taken from mongodb.com.
- Select your driver and version: Node.js 2.2.12 or later
- Add your connection string into your application code: copy that string and paste it in MONGO_URI
Requirements to run the frontend
VITE_API_URL = 'http://localhost:4000'
The port number should match with the backend port number.
In the project directory
Install npm packages
npm install
Once installed run the frontend server
npm run dev
In the project directory
Install npm packages
npm install
Once installed run the backend server
npm run dev