forked from athenekilta/ilmomasiina
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from Tietokilta/feat/installation-docs
Better installation instructions and customization experience
- Loading branch information
Showing
19 changed files
with
529 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,11 @@ PORT=3000 | |
# Choose mysql or postgres | ||
DB_DIALECT=<mysql|postgres> | ||
DB_HOST=localhost | ||
DB_USER=ilmomasiina | ||
DB_PASSWORD=secret | ||
#DB_PORT=<3306|5432> | ||
DB_USER=ilmo_user | ||
DB_PASSWORD=password | ||
DB_DATABASE=ilmomasiina | ||
#DB_SSL=false | ||
|
||
|
||
# Privacy-related settings | ||
|
@@ -59,70 +61,74 @@ MAIL_FROM=<[email protected]> | |
# a version supporting language detection. | ||
MAIL_DEFAULT_LANG=fi | ||
|
||
# If you want to send emails, choose either SMTP or Mailgun. | ||
# In development, you can omit both and emails will be printed to the console. | ||
|
||
# SMTP server host and credentials, if using direct SMTP. | ||
SMTP_HOST='' | ||
SMTP_HOST= | ||
SMTP_PORT=587 | ||
SMTP_USER='' | ||
SMTP_PASSWORD='' | ||
SMTP_USER= | ||
SMTP_PASSWORD= | ||
SMTP_TLS=false | ||
|
||
# Mailgun API key and domain, if using it. | ||
MAILGUN_API_KEY='' | ||
MAILGUN_DOMAIN='' | ||
MAILGUN_API_KEY= | ||
MAILGUN_DOMAIN= | ||
# Mailgun server to use (defaults to api.eu.mailgun.net) | ||
MAILGUN_HOST='api.eu.mailgun.net' | ||
MAILGUN_HOST=api.eu.mailgun.net | ||
|
||
|
||
# URL settings | ||
|
||
# Canonical base URL for the app. Used by the backend. | ||
# Include $PATH_PREFIX, but NOT a final "/". | ||
# e.g. "http://example.com" or "http://example.com/ilmo" | ||
BASE_URL='http://localhost:3000' | ||
BASE_URL=http://localhost:3000 | ||
|
||
# URI prefix for the app. Used for frontend URLs. | ||
# Include initial "/", but NOT a final "/". | ||
# e.g. "" or "/ilmo" | ||
PATH_PREFIX='' | ||
PATH_PREFIX= | ||
|
||
# URI prefix or full base URL to the API. Used by the frontend. | ||
# Leave empty to use "$PATH_PREFIX/api". | ||
# YOU SHOULD LEAVE THIS EMPTY unless you're building the frontend against a remote API. | ||
# Include "/api" if applicable but NOT a final "/". | ||
API_URL='' | ||
API_URL= | ||
|
||
# URL template for an event details page. Used by the backend for iCalendar exports. | ||
# Leave empty to use the default routes used by the frontend, i.e. "$BASE_URL/events/{id}". | ||
# YOU SHOULD LEAVE THIS EMPTY unless you're using a customized frontend with different paths. | ||
# Use the token {slug}, e.g. http://example.com/event/{slug} | ||
#EVENT_DETAILS_URL='' | ||
#EVENT_DETAILS_URL= | ||
|
||
# URL template for a signup edit page. Used by the backend for emails. | ||
# Leave empty to use the default routes used by the frontend, i.e. "$BASE_URL/signup/{id}/{editToken}". | ||
# YOU SHOULD LEAVE THIS UNSET unless you're using a customized frontend with different paths. | ||
# Use the tokens {id} and {editToken}, e.g. http://example.com/signup/{id}/{editToken} | ||
|
||
#EDIT_SIGNUP_URL='' | ||
#EDIT_SIGNUP_URL= | ||
|
||
# Allowed origins for cross-site requests to API. Separate with commas or use * for all. | ||
ALLOW_ORIGIN='' | ||
ALLOW_ORIGIN= | ||
|
||
|
||
# Sentry.io public DSN for error tracking (only used in production, leave empty to disable) | ||
SENTRY_DSN='' | ||
SENTRY_DSN= | ||
|
||
|
||
# Branding settings | ||
|
||
# Website strings (requires website rebuild) | ||
BRANDING_HEADER_TITLE_TEXT='Ilmomasiina' | ||
BRANDING_FOOTER_GDPR_TEXT='Tietosuoja' | ||
BRANDING_FOOTER_GDPR_LINK='http://example.com/privacy' | ||
BRANDING_FOOTER_HOME_TEXT='Example.com' | ||
BRANDING_FOOTER_HOME_LINK='http://example.com' | ||
BRANDING_HEADER_TITLE_TEXT=Ilmomasiina | ||
BRANDING_FOOTER_GDPR_TEXT=Tietosuoja | ||
BRANDING_FOOTER_GDPR_LINK=http://example.com/privacy | ||
BRANDING_FOOTER_HOME_TEXT=Example.com | ||
BRANDING_FOOTER_HOME_LINK=http://example.com | ||
|
||
# Email strings | ||
BRANDING_MAIL_FOOTER_TEXT='Rakkaudella, Tietskarijengi & Athene' | ||
BRANDING_MAIL_FOOTER_LINK='https://ilmo.athene.fi' | ||
BRANDING_MAIL_FOOTER_TEXT=Rakkaudella, Tietskarijengi & Athene | ||
BRANDING_MAIL_FOOTER_LINK=https://ilmo.athene.fi | ||
|
||
# iCalendar exported calendar name | ||
BRANDING_ICAL_CALENDAR_NAME='Ilmomasiina' | ||
BRANDING_ICAL_CALENDAR_NAME=Ilmomasiina |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Publish JS packages | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
npm: | ||
name: Publish JS packages | ||
if: github.ref_type == 'tag' && github.repository == 'Tietokilta/ilmomasiina' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- | ||
name: Check out the repo | ||
uses: actions/checkout@v3 | ||
- | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7 | ||
- | ||
name: Setup Node.js for NPM | ||
uses: actions/setup-node@v3 | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
node-version: '16' | ||
cache: 'pnpm' | ||
- | ||
name: Install dependencies | ||
run: | | ||
npm install -g pnpm@7 | ||
pnpm install --frozen-lockfile --ignore-scripts | ||
- | ||
name: Build packages | ||
run: | | ||
pnpm run --filter @tietokilta/ilmomasiina-models build | ||
pnpm run --filter @tietokilta/ilmomasiina-components build | ||
- | ||
name: Publish to NPM | ||
run: | | ||
pnpm publish --filter @tietokilta/ilmomasiina-models --no-git-checks --access public | ||
pnpm publish --filter @tietokilta/ilmomasiina-components --no-git-checks --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- | ||
name: Setup Node.js for GitHub Packages | ||
uses: actions/setup-node@v3 | ||
with: | ||
registry-url: 'https://npm.pkg.github.com' | ||
- | ||
name: Publish to GitHub Packages | ||
run: | | ||
pnpm publish --filter @tietokilta/ilmomasiina-models --no-git-checks --access public | ||
pnpm publish --filter @tietokilta/ilmomasiina-components --no-git-checks --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.