polls

command module
v0.0.0-...-0cebefa Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 5 Imported by: 0

README

Polls

A website where you can add and share polls with others.

Contributing

Feel free to contribute to this project, read the contributing guidelines.

Deployment

Running the server locally

You'll need a firebase project and an admin sdk key

FIREBASE_CRED=`cat your-firebase-adminsdk.json"` go run server.go

Deploying You can deploy the project anywhere you want. Set u the the environment variable FIREBASE_CRED and run the server.

The project is written to work with Vercel, but can also be used as a regular server. If you do use it as a server, you can edit the way firebase is authenticated so it doesn't do that on every request.

Example requests

# Poll info
curl -X GET mydomain.com/api/info -d '{"pollId": "SOME_POLL_ID"}'
> {"Title":"Language","Votes":{"Rust":1,"Swift":5}}

License

This project is licensed under the MIT license.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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