Skip to content

PinkyRabbit/actionhero-mysql-objection-starter

Repository files navigation

My actionhero Project

visit www.actionherojs.com for more information

To install:

(assuming you have node, TypeScript, and NPM installed)

npm install

To Run:

npm start

To Test:

npm test

React

I need JWT auth into my skeleton app. So I cloned react-redux-jwt-authentication-example and update to let it work with my codebase.

knex

npm run knex migrate:make create-users

Migration cheatsheet into knex/README.md

Eslint

I using tslint-microsoft-contrib converted to eslint with tslint-to-eslint-config. This project already have .eslint.rc file.

How I did this:

  1. install microsoft-contrib with npm install tslint-microsoft-contrib --save-dev and add config file tslint.json
{
    "defaultSeverity": "error",
    "extends": ["tslint:recommended", "tslint-microsoft-contrib/recommended"],
    "jsRules": {
      "no-unused-expression": true
    },
    "rules": {
      "quotemark": [true, "single"],
      "member-access": [false],
      "ordered-imports": [false],
      "max-line-length": [true, 150],
      "member-ordering": [false],
      "interface-name": [false],
      "arrow-parens": false,
      "object-literal-sort-keys": false,
      "no-submodule-imports": false,
      "export-name": false,
      "no-relative-imports": false
    },
    "rulesDirectory": ["node_modules/tslint-microsoft-contrib"]
  }
  1. install tslint packages
npm i typescript tslint -D

and convert tslint config to eslint

npx tslint-to-eslint-config
  1. remove all packages that we don't need after converting:
npm remove typescript tslint tslint-microsoft-contrib -D

and remove files tslint-to-eslint-config.log and tslint.json

  1. remove rules for react a11y etc.

About

💫 My starter for actionhero + objection projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published