/mandecoisas-api

Mande qualquer coisa para qualquer lugar =)

Primary LanguageTypeScriptMIT LicenseMIT

node-ts-starter-template

starter template for nodejs development with Typescript, eslint and more

Build Status Codacy Badge code style: prettier Coverage Status David GitHub Pages GitHub npm

Get up to speed with nodejs development using this template with useful libraries and config:

  • typescript
  • ts-jest
  • eslint
  • airbnb
  • commitlint
  • husky
  • prettier
  • coveralls
  • vscode
  • travis
  • typedoc
  • github pages

Installation

  1. Clone from here
  2. Initialze your new repository: npm run setup

Test

npn run test

Enable Github Pages docs site

This template supports generating api documentation using TypeDoc.

It you want to host this on a Github pages site you need to create a specific branch for that:

  • git checkout --orphan gh-pages
  • git rm -rf .
  • git commit --allow-empty -m "Init empty branch"
  • git push origin gh-pages

More info can be found here: https://medium.com/linagora-engineering/deploying-your-js-app-to-github-pages-the-easy-way-or-not-1ef8c48424b7

Also, if you want to deploy the documentation with Travis change this in the .travis.yml file:

  • uncomment the npm run docs command
  • uncomment the pages provider task

Give Travis permissions to deploy to Github

  • Create a new personal access token for Travis
  • Give the token public_repo access and give it a descritive name (Travis CI)
  • Copy the generated token looking similar to this: f89d4f5afe32426d48b1aaa8b7883be445703578
  • In Travis, create a new environment variable named GITHUB_DEPLOYMENT_KEY and paste the generated token as the value