GithubHelp home page GithubHelp logo

isabella232 / hapi.dev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hapijs/hapi.dev

0.0 0.0 0.0 4.63 MB

The hapi.dev developer portal

JavaScript 8.35% Vue 86.77% Dockerfile 0.10% SCSS 4.77%

hapi.dev's Introduction

@hapi/hapi.dev

The home of the hapi.dev developer portal.

Running/developing

  • First, clone or download the repo and run npm install.

  • Next, you need to make an .env file in the root directory.

  • Obtain a token from GitHub here and select checked scopes only (only two)

    • repo : Full control of private repositories
      • repo status : Access commit status
      • repo_deployment : Access deployment status
      • public_repo : Access public repositories
      • repo:invite : Access repository invitations
  • Copy your GitHub token and place it in your .env file by entering: GITHUB_TOKEN = "YOUR TOKEN"

  • Run npm run dev and go to http://localhost:3000 to view the site. The dev server hot loads, which will automatically show your changes without having to restart the server.

  • Run npm run static and go to http://localhost:3000 to view the site with the actual resulting /dist folder.

  • After you make your changes, simply open a pull request.

Add a translation for the tutorials

In the directory static/lib/tutorials we have some directories with the name of the languages translated, to add a new translation, simply add a new folder in the static/lib/tutorials with your translation. An Example, if you translate the tutorials, to Brazilian Portuguese, you must use the pt_BR as the name of the directory. Inside the directory pt_BR, you need to follow the same struture we use in en_US, with all tutorials separated in markdown files and an index.js file that's export the tutorials and the titles. After finish the translations, you also need add your translation in the index.js file inside static/lib/tutorials.

Plugins

hapijs.com maintains a list of community-created plugins here. If there are any plugins you have created or one you use often that isn't listed please send a pull request. Please note the existing categories, but if your plugin does not fit one feel free to create your own. Please keep the plugins in alphabetical order to be fair to all contributors.

Building the docker image

  • npm install (installs dependencies in order to run the generate)
  • npm run generate (builds the static dist folder)
  • npm run docker-build (creates hapi.dev image with just static content)

This builds a static docker image without any secrets. It relies on the dist folder being created from the npm run generate step.

Deployment process

See DEPLOY.md

hapi.dev's People

Contributors

2color avatar andyclausen avatar antoniogiordano avatar botic avatar brillout avatar chdnitinsharma avatar chrskrchr avatar cjihrig avatar damusix avatar dependabot[bot] avatar eperedo avatar friederbluemle avatar geek avatar ghkim3221 avatar henryjw avatar hueniverse avatar iampeterbanjo avatar ianwalter avatar jarrodyellets avatar jonathansamines avatar justinabrahms avatar kaveet avatar lloydbenson avatar metoikos avatar nargonath avatar radenui avatar reverentgeek avatar rolandmarg avatar sto3psl avatar tayts avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.