web

command module
v0.0.0-...-a18e1c3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

GetCourageNow Web

KanBan

https://github.com/orgs/getcouragenow/projects/3

Getting started

Download https://github.com/getcouragenow/web/ or clone using $ git clone https://github.com/getcouragenow/web.git

  • Run $ git fetch
  • Run $ git checkout dev to be on the correct branch

Local Development

Makefile has all the commands necessary for building, starting server, and deploying to Firebase and must be executed from the checked out root directory of GetCourageNow

To install all dependencies:

To clean or update Let's Encrypt codebase:

  • Run $ make git-clean to clean Let's Encrypt codebase directory when necessary
  • Run $ make git-upstream to pull Let's Encrypt repo if codebase directory is cleaned
  • Or run $ make git-update to update Let's Encrypt's codebase directory

To import content from googlesheet:

  • Run $ make gsheetThis will create a document called outputs and contains all .
  • To add a new sheet see /config folder for more infos.

To import GetCourageNow content into the Let's Encrypt codebase:

  • Run $ make modify to invoke Import.go script. By default it will replace, overwrite, or append to Let's Encrypt codebase.

  • Run $ make hugo-build to build after importing GetCourageNow content into Let's Encrypt codebase

  • Run $ make hugo-run to start the server.

  • Run $ make hugo-open to launch browser to see the build locally.

To fixe text on one file:

The file fixe_text.json is used to replace strings on some files, so how it's work?

  • file_path: adding file path where there is an error an you want to fixe it.
  • errors: it's an array contains objects where you need to set "old" and "new" string that you want to replace in the file_path.
  • example:
{
    "file_path": "resources/website/layouts/partials/head.html",
    "errors": [
        { "old": "@letsencrypt", "new": "@winwisely" }
    ]
}
  • Run make modify-text to fixe and update all strings.

To fixe text on multiple files:

The file clean_translation_tags.json is used by gsheet import to clean tags used to translate, or fixe translation errors for all the files.

{
    "error": "NOTRANSLATE_",
    "fixe": ""
}
  • Run make gsheet to fixe and update outputs folder.

Deployment

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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