Skip to content

codeekage/savease

Repository files navigation

savease

Intention

Create a seamless way of communicate muitple deployed cloud functions as one.

How to use

Have a reliable terminal for windows installed everything will be done with terminals

  • Install node.js
  • Install npm install -g firebase-tools --save
  • cd functions
  • Run npm run serve from functions folder
  • Run test.html with a server environment(i.e. you can install live server in VS Code)

Some buttons are created in test.html.

Avaliable Routes

Auth /auth

  • POST /loginlogins and start session
  • POST /signup create a new user with email and password
  • GET /profile fetch currently logged in user info
  • GET /logout logsout and destroy session
  • PUT /update update currently logged in user info

Units /units

  • POST /add add new unit set
  • GET /fetch fetch avaliable unit sets
  • GET /fetch/:id fetch with unit set id
  • POST /login avaliable but do not use
  • GET /logout avaliable but do not use

Batches /batch

  • POST /login avaliable but do not use
  • GET /logout avaliable but do not use
  • POST /add add new batch set
  • GET /fetch get batch set from the currently logged in user
  • GET /fetch/:id force get batch set with the id provided

Wallet /wallet

  • POST /login avaliable but do not use
  • GET /logout avaliable but do not use
  • GET /history get currently logged in user wallet history
  • GET /balance get wallet of the currently logged in user

Usage

https://us-central1-save-ease.cloudfunctions.net/auth/profile

The above URL fetches details of the currently logged in user.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors