Skip to content

DavidCabal/my-memories-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Memories App


Open source project for easily saving memorable moments.

  • Node backend using Google Cloud Functions
  • Frontend PWA built with StencilJS
    • deployable as static site
    • login key supported if frontend is deployed publicly
    • login can be disabled if deployed privately (Raspberry Pi home server, etc)
      • to disable, set value to false on line 13 of frontend/src/components/app-home/app-home.tsx

User Steps

From "Frontend" Folder

  • generate Firebase json keyfile and store in root of src folder
  • create apiKey.js in root of src folder that looks like the following export const apiKey = 'YOUR API KEY HERE';
  • create constants.js with saveUrl, loginUrl, and retrieveUrl exported constants set to those urls
    • the retrieveUrl should not include the last path section
  • npm install && npm run build from root of "frontend" folder
  • Production build files will then be in the "www" folder. Deploy these wherever you'd like. (static host somewhere, Raspberry Pi server at home, etc)
    • Example: cd www then firebase deploy

From "gcloud-functions" folder

  • install firebase cli then run firebase init from inside the "frontend" folder to setup the firebase link
  • firebase deploy from inside the "frontend" folder
  • After deploying your frontend PWA, update index.js to reflect the correct URL for each Access-Control-Allow-Origin header
  • install gcloud cli
  • npm install && npm run build from root of "gcloud-functions" folder
  • from inside gcloud-functions/functions folder run the following command for each function exported in gcloud-functions/src/index.js gcloud functions deploy {FUNCTION NAME} --runtime nodejs6 --trigger-http
    • example: gcloud functions deploy retrieveAll --runtime nodejs6 --trigger-http

About

Backend and Frontend for storing life's memories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors