FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gmdevgithub/gmdevapi-backend at filerestructure · GitHub

 
 

Repository files navigation

GMAppsApi

( Gio M Apps Api)

Welcome to my backend!

This is a backend for my applications written in Node/ExpressJS for Google Cloud Functions!

This repository contains:

  1. Google Cloud Functions
  2. Express JS
  3. Fetching API's with Async/Await functionality

Table of Contents


Goals:

  1. Understand Cloud Functions and the GCP
  2. Understand Node / Express JS
  3. Keep my Secrets secure for external API usage
  4. Create a backend for all my personal applications
  5. Gain a deeper understanding of full stack development

Build

npm install
npm start

Special command for gcloud:

gcloud functions deploy (projectname) --entry-point giotest --runtime nodejs16 --trigger-http --project (cloudname) --memory 128MB --timeout 60s --max-instances 5000

endpoints

  • Spotify:

    • User can request different artist information from Spotify from my website

    v1/Spotify

    v1/Spotify?id=value

  • Arduino:

    • User recieves a status letting them know the LED is OFF IRL

    /v1/Arduino/CodeLEDToggle_OFF

    • User recieves a status letting them know the LED is ON IRL

    /v1/Arduino/CodeLEDToggle_ON

    • User can request status of Arduino Thing

    /v1/Arduino/CodeLEDToggle_STATUS

  • OpenAI:

    • User can get a generic prompt

    /v1/OpenAi/test

    • User can get a prompt based on input

    /v1/OpenAi/test?userInput=value

  • Financial API's:

    • User can get stock data

    /v1/Stock/ticker /v1/Stock/ticker?symbol=GOOGL&date=2022-08-04&adjusted=true

    • User can get crypto data

    /v1/Crypto/ticker /v1/Crypto/ticker?cryptoTicker=X:LTCUSD

    • User can get NFT data

    /v1/NFT/collection /v1/NFT/collection?collectionName=doodles-official

    • User can get Gov data

    /v1/GOV/debt

    RelatedProjects

    https://giomoscato.com/#/

    https://fullstackingdevelopment.com/

    webresources

http://expressjs.com/

https://reactjs.org/

https://www.digitalocean.com/community/tutorials/use-expressjs-to-get-url-and-post-parameters

https://dmitripavlutin.com/javascript-fetch-async-await/

https://forum.arduino.cc/

https://create.arduino.cc/iot

https://console.cloud.google.com/functions

credits

From > https://sketchfab.com

Provence House 3D scan ZenFone AR by mano1creative, under CC.

extra

packages

"dependencies": {"@google-cloud/functions": "^2.2.0","@google-cloud/functions-framework": "^3.1.2","cross-fetch": "^3.1.5","dotenv": "^16.0.1","express": "^4.18.1","node-fetch": "^3.2.9"}


Maintainers

Giovanni Moscato Yupimaperson101@protonmail.com

Contributing

NA

Contributors

Giovanni J Moscato


License

Standard

Badge

If your README is compliant with Standard-Readme and you're on GitHub, it would be great if you could add the badge. This allows people to link back to this Spec, and helps adoption of the README. The badge is not required.

RecentUpdates

Created 4 new endpoints Date: 8/2/2022

Created ENV secrets Date: 7/26/2022

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL