Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

lwileczek/goodidea

Repository files navigation

Good Idea is a slightly fancier TODO app where anonymous users maysubmit requests and vote on their importance.Users donot need to login or create an account to make a request or cast votes.

Requirements

  • Postgresql Database
  • environment variableDATABASE_URL to point the server at the database

Dev Requirements

  • go 1.21+
  • node.js 18+

Build

  1. Build and minify CSS and JS with:npm install && npm run build
  2. Build the server binary withgo build ./app/main.go

To make it easy, usemake to build

make build

which will populate thestatic directory and build a binary calledserver

Configure

By default, the server will attempt to user local storage for images understatic/img.This can be changed by settingLOCAL_DIR within the environment.

If you prefer to use object storage instead, you can set the environment variables to providedthe credentials needed to authenticate:

variabledescription
AWS_ACCESS_KEY_IDThe access key provided by your object storage provider for the S3 compatible sdk
AWS_SECRET_ACCESS_KEYThe secret key for authenticating to object storage
AWS_SESSION_TOKENThe token for the current session which can be used
AWS_DEFAULT_REGIONThe region the bucket is in

aws sdk env variables

In addition, the following variables may be used as well.

variabledescription
AWS_BUCKETThe name of the bucket to use within the object store
AWS_IMAGE_CDNThe URL (including the protocol, e.g. https) of the CDN which serves the images out of the bucket
AWS_ENDPOINTThe URI for the object storage to try and connect to if not AWS S3

The system checks for the environment variablesAWS_BUCKET to decide if it should be using object storage or notand thus, the rest are optional.

Status

warningThis project is inbeta

Deployment

For deployment information, please see the projectwiki


[8]ページ先頭

©2009-2025 Movatter.jp