Skip to content

klondikemarlen/express-light-rail

Repository files navigation

express-light-rail (a.k.a. Express like Rails)

Some base models that will help your write an express app with some of the conceptual benefits of rails.

If you are asking yourself, "Should I be using Rails instead?", the answer is yes, you should be using Rails instead. This library is mearly a shim to reduce the pain of using a limited toolset in a limited environment.

Development

With Docker

  1. Set up asdf and install ruby.
  2. Set up direnv with an .envrc with PATH_add bin.
  3. Build the app with dev build.
  4. Boot the app with dev up.

Install software with:

  • dev npm install <package-name>

Without Docker

  1. Build the project with:
    npm run build

Testing

With Docker

  1. Set up asdf and install ruby.
  2. Set up direnv with an .envrc with PATH_add bin.
  3. Build the app with dev build.
  4. Boot the test service with dev test.

Without Docker

  1. Run the tests with:
    npm run test

Deployment

  1. Generate a new version via:

    npm version patch -m "some message"      # "patch" -> 1.0.0 -> 1.0.1
    npm version minor -m "some message"      # "minor" -> 1.0.0 -> 1.1.0
    npm version major -m "some message"      # "major" -> 1.0.0 -> 2.0.0
  2. Deploy to npm with:

    npm publish

    Note that publish runs npm run build via prepublishOnly script.

About

Some base models that will help your write an express app with some of the conceptual benefits of rails.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors