This is a REST API for Bizz-It, a mobile app to connect potential franchisees and franchisors more easily. It is built with Node.js, Express, and Google Cloud.
- Clone this repository
git clone- Install dependencies
npm install- Create a
.envfile based on the.env.examplefile contain these following environment variables:
DB_NAME= # name of your database
DB_USERNAME= # username of your database
DB_PASSWORD= # password of your database
JWT_SECRET= # secret key for JWT
GCLOUD_STORAGE_BUCKET= # name of your GCP storage bucket
PROJECT_ID= # your GCP project ID
PORT= # port for your server
NODE_ENV= # environment for your server
EMAIL_USERNAME= # email for email-based otp
EMAIL_PASSWORD= # password for email-based otp-
Create a
credentials.jsonfile for your GCP service account. You can find the instructions here. -
Run the development server
npm run server- Express - Node.js web application framework
- Sequelize - Promise-based Node.js ORM for Postgres
- mysql2 - MySQL client for Node.js
- @google-cloud/storage - Google Cloud Storage client library
- bcrypt - Library for hashing passwords
- jsonwebtoken - Library for generating JWT
- nodemailer - Library for sending emails
- multer - Middleware for handling multipart/form-data
- dotenv - Library for loading environment variables
- cors - Middleware for enabling CORS
- joi - Library for validating data
You can find the documentation for this API here.
This API is using Google Cloud Platform for deployment.
GCP Services used:
- App Engine
- Cloud SQL
- Cloud Storage
