Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.02 KB

Readme.md

File metadata and controls

66 lines (46 loc) · 1.02 KB

Get Parked Backend

Required Environments

  • .env file with
PORT=3000
SERVER_NAME=serverName

DATABASE_URL=mysql://username:password@localhost:3306/get_parked_db

ENCRYPTION_KEY=yourEcryptionKey
API_TOKEN_DECRYPTED=yourApiTokenDecrypted

ACCESS_TOKEN_SECRET=yourAccessToken
ADMIN_USER_TOKEN=yourAdminUserToken

UNIVERSAL_API_TOKEN=yourUniversalApiToken

GOOGLE_APPLICATION_CREDENTIALS=./firebase.json

CUSTOMER_MAIL_ID=yourCustomerEmailId
CUSTOMER_MAIL_PASSWORD=yourEmailPassword

RAZORPAY_KEY_ID=yourRazorpayKey
RAZORPAY_KEY_SECRET=yourRazorpaySecret
  • awsSmsConfig.json file with
{
    "accessKeyId":"yourAccessKeyId",
    "secretAccessKey":"yourSecretAccessKey",
    "region":"yourRegion"
}
  • firebase.json file.

  • mysql.env for running mysql container on docker.

MYSQL_ROOT_PASSWORD=password
MYSQL_USER=admin
MYSQL_PASSWORD=password

Prisma Installation

npm install prisma --save-dev
npx prisma
npx prisma migrate dev
npx prisma generate