Skip to content

A Serverless Restful API example using expressjs, firestore, firebase-auth etc.

License

Notifications You must be signed in to change notification settings

JunkieLabs/junkie-parking-rest-api

Repository files navigation



Serverless REST API build with Cloud Functions, Firestore, Express and TypeScript

This is a simple API that manage billing of vehicles in parking area.

For related project, see Junkie Parking App

Requirements

NodeJS

You will need a Firebase project and firebase tools cli

npm install -g firebase-tools

Getting Started

Clone this repository

git clone https://github.com/JunkieLabs/junkie-parking-rest-api.git .

Create Firebase Project

  • Log into firebase and create a project.

for more detail visit Firebase Project setup

  • After creation of project, get the project id, this will be needed in next step.



  • make sure your firebase project is in blaze.

Updating firebase project id in repository

  • You need to change the firebase project name in .firebaserc file.
{
  "projects": {
    "default": "your-project-id"
  }
}
  • After that, you can log in to firebase in the terminal
firebase login

install packages

  • Go inside functions folder and install npm packages using terminal
npm install 

Serve function

  • Go inside the functions folder, and run serve command
npm run serve

Deploy to firebase

  • For the first time, you have deploy the hosting and functions together
npm run deploy

Contributors:


FAQ:

Is this project related to Junkie Parking Android App?

Yes! The App won't run without backend. You can this repo and run on your system.


Further help

This project is an open-source initiative by Junkie Labs.

For any questions or suggestions send a mail to [email protected] or chat with the core-team on gitter.

Gitter



License

MIT License.