complaints

module
v0.0.0-...-8a37403 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0

README

How to run a local instance

Download and run the site locally:

go get github.com/skypies/complaints/app/frontend                           # pulls down dependencies
mv complaints/config/test-values.go.sample complaints/config/test-values.go # setup test config
cd $GOPATH/github.com/skypies/complaints
go run ./app/frontend/*go`                                                  # build & run locally

Deploy an instance of the site to your google cloud project:

cd $GOPATH/github.com/skypies/complaints
export YOURPROJECT=serfr0-1000
gcloud datastore --project=$YOURPROJECT create-indexes app/index.yaml
gcloud app deploy --project=$YOURPROJECT app/dispatch.yaml
gcloud app deploy --project=$YOURPROJECT app/queue.yaml
gcloud app deploy --project=$YOURPROJECT app/cron.yaml
gcloud app deploy --project=$YOURPROJECT --version=1 app/frontend
gcloud app deploy --project=$YOURPROJECT --version=1 app/overnight

The test-values.go.sample sample file has no passwords in, so Facebook login won't be working.

Run the command line tool:

cd $GOPATH/github.com/skypies/complaints
export GOOGLE_APPLICATION_CREDENTIALS=~/auth/token.json
go run cmd/cdb/cdb/go -h

Directories

Path Synopsis
app
frontend
This file contains a few routines for parsing form values
This file contains a few routines for parsing form values
cmd
cdb
pkg
config
Hacky approach to config, to keep secrets out of github; population of this config happens from local files synlinked into this dir of the buildtree.
Hacky approach to config, to keep secrets out of github; population of this config happens from local files synlinked into this dir of the buildtree.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL