Skip to content

back-end for gffft.app - uses App Engine, Google Cloud Functions, Firestore, Firebase Auth

Notifications You must be signed in to change notification settings

teacurran/gffft-server

Repository files navigation

Gffft Server

back-end source code for gffft.app

This is a project for experimentation, there is a lot of code duplication and inconsistencies

measure?project=teacurran gffft server&metric=alert status
measure?project=teacurran gffft server&metric=coverage

testing

Prerequesites:

  • docker

  • make

Make commands:

  • make build

  • make start

  • make stop

  • make test

  • make rebuild

  • make test

make start will start up the server in development mode.

make test will run all of the unit tests against a running database and an emulated Firestore authentication service.

running npc:

FIRESTORE_EMULATOR_HOST="localhost:8080" npx ts-node src/npc.ts
NODE_ENV=production npx ts-node src/npc.ts

other notes

  • this is a hobby project

  • I organized the source based on concern ('galleries', 'gffts', 'notebooks', etc) rather than typical ('models', 'controllers', 'api', etc). I read a blog post about how cool this would be but I probably won’t do it on projects in the future.

  • all backend code is in a dir called functions because I started out using Firebase functions

About

back-end for gffft.app - uses App Engine, Google Cloud Functions, Firestore, Firebase Auth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages