Skip to content

Project404-PasalPintar/pasalpintar-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pasal Pintar Backend

Node.js  TypeScript.ts  Firebase  Zod  JWT  OpenAPI Swagger  Postman  Google Cloud Platform 

This repository is the backend for a mobile application that aims to provide various features such as authentication, chat, and more. This backend is built using TypeScript, Firebase, Zod, JWT, OpenAPI (Swagger), FireStore, and Cloud Storage

Running on Localhost

Clone the project

  git clone https://github.com/Project404-PasalPintar/pasalpintar-backend
  1. Fix eslint
  • Go to the project directory
cd pasalpintar-backend/functions
npm run lint -- --fix
  • Create an .env file based on the env.example file
copy .env.example .env

NOTE: if you use Cloud Functions V1

  • Add Firebase Env Optional
firebase functions:config:set JWT_ACCESS_TOKEN_SECRET="YOUR_ACCESS_TOKEN_SECRET"
firebase functions:config:set JWT_REFRESH_TOKEN_SECRET="YOUR_REFRESH_TOKEN_SECRET"
  • Check Firebase Env Optional
firebase functions:config:get
  • Remove Env API.KEY Firebase Optional
firebase functions:config:unset api.key

  1. Deploy Cloud Functions
  • Go to the project directory
cd pasalpintar-backend
  • Deploy Cloud All Functions
firebase deploy --only functions

Deploy Cloud Functions Depend On The Name Optional

firebase deploy --only functions:auth,functions:session

About

⚖️Pasal Pintar Backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published