{"id":14967732,"url":"https://github.com/upplication/landing","last_synced_at":"2025-10-25T21:32:07.065Z","repository":{"id":14245170,"uuid":"16952574","full_name":"Upplication/landing","owner":"Upplication","description":"This project builds the static and internationalized landing page of Upplication.","archived":false,"fork":false,"pushed_at":"2022-12-03T06:51:57.000Z","size":39874,"stargazers_count":27,"open_issues_count":7,"forks_count":18,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-30T02:36:47.966Z","etag":null,"topics":["gulp","jade","netlify","serverless","static-site"],"latest_commit_sha":null,"homepage":"https://www.upplication.com","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Upplication.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-18T15:04:47.000Z","updated_at":"2024-03-29T00:28:15.000Z","dependencies_parsed_at":"2023-01-11T18:46:20.443Z","dependency_job_id":null,"html_url":"https://github.com/Upplication/landing","commit_stats":null,"previous_names":[],"tags_count":147,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Flanding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Flanding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Flanding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Flanding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Upplication","download_url":"https://codeload.github.com/Upplication/landing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238212426,"owners_count":19434955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gulp","jade","netlify","serverless","static-site"],"created_at":"2024-09-24T13:38:31.841Z","updated_at":"2025-10-25T21:32:01.105Z","avatar_url":"https://github.com/Upplication.png","language":"Less","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Upplication Landing\n[![Build Status](https://travis-ci.org/Upplication/landing.svg?branch=develop)](https://travis-ci.org/Upplication/landing)\n\n```\n$ git clone git@github.com:Upplication/landing.git\n$ yarn install\n$ yarn start\n```\n\n## Requirements\n* [node](http://nodejs.org/)\n* [npm](https://docs.npmjs.com/)\n* [yarn](https://yarnpkg.com/)\n\nAlso, it's recomendend (but not mandatory) installing\n* [gulp-cli](http://gulpjs.com/) `yarn install -g gulp-cli`\n\n## Installation\n```\n$ git clone git@github.com:Upplication/landing.git\n$ yarn install\n```\n\n## Running\n```\n$ yarn start\n```\n\nStarts a local development environment which:\n* Is accesible at http://localhost:9000.\n* Watches changes in css, jade, js ... folders and compiles if it is necessary.\n* Browser lives reload.\n\n## Deployment\n```\n$ yarn run deploy --mode=production\n```\n\nBuilds the project with optimization for distribution.\n\nIf you are going to upload the project to a folder different than root (/), you can use a parameter called `config.base_path` with the destination root path. Example `grunt deploy --config.base_path=/new` to make the static files points to the proper path.\n\n## Documentation\nThis is a quick reference that aims to help you to learn how to add new languages and views on this project.\n\n### Configure environment\n\nThe file `config.json` contains the definition of all the configuration needed by the project. This definitions are grouped by environment. You can activate one environemnt by calling the paramenter `env`. Example `yarn run deploy -- --env=localhost` load all the vars defined in the localhost section. All this vars are available at:\n\n* Jade templates by calling `#{localConfig.xxxx}`\n* Saas files by calling `@@config`. (#{localConfig.} cant be use because saas define his own vars in that way)\n* JSON i18n files by calling `@@config`.\n\nYou can override this vars passing the concrete key as parameter with the prefix `config.`. Example `yarn run deploy -- --env=localhost --config.token_manager=1337 --mode=production` load all the vars defined in the localhost section and override the token_manager var with the value `1337`\n\n### Add a new view\n\n1. *Adding template*: Create:\n\n    `app/views/[view_name].jade`\n\n2. *Adding styles*:\n\n    - Create a less file: `app/styles/less/[view_name]/[name].less`\n    - Add the new result css to the view. Example:\n    ```\n    link(rel='stylesheet', href='#{localConfig.base_path}/styles/[view_name]/[name].css')\n    ```\n\n3. *Adding scripts*:\n\n    Scripts are concatenated by folder.\n    - Create multiple js files inside a folder:\n    ```\n    app/scripts/[folder]/1.js\n    app/scripts/[folder]/2.js\n    app/scripts/[folder]/3.js\n    ```\n    - Add the new result js to the view. Example:\n     ```\n    script(type=\"text/javascript\", src='#{localConfig.base_path}/scripts/[folder].js')\n    ```\n\n4. *Add translations*:\n\n    Update all: `app/locales/[names]_[language_code]-[country-code].json` with:\n\n    - Add a new object in the root with the name of the file added to the view without the extension [view_name]\n    - Add the following keys to the object:\n     - _url: the absoulte url for the view in the current language\n     - _meta_title: seo\n     - _meta_description: seo\n     - _keywords: seo\n     - _priority: sitemap priority\n\nWe use Oneskyapp.com to translate/review the texts. You can use the task: grunt oneskyExport to override the lang with the translations in: https://upplication.oneskyapp.com (you need the access key and secret key)\n\nNotes:\n\n* You don't need to follow this process in order to link external resources (blog, youtube videos, etc.) using the language file.\n* Do not overwrite any other URL (you can check the languages files or the auto-generated routing.json file)\n* All variables starting with \"_\" are mandatory\n* You can split the translations as many files as you want, only respects the naming: [name]_[language_code]-[country-code]*.json\n\n### Add a new language\n1. *Add language*:\n\n    Update: `app/locales/languages.json` adding the new language\n\n2. *Add the translation file*:\n\n    Create: `app/locales/[custom_name]_[language_code]-[country_code]*.json`\n\nLanguage code list: http://www.w3schools.com/tags/ref_language_codes.asp\nCountry code list: https://www.w3schools.com/tags/ref_country_codes.asp (optional)\n\n\\* country code is optional.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupplication%2Flanding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupplication%2Flanding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupplication%2Flanding/lists"}