Name: node-base
Owner: KADIRA
Description: Base app for all the server side node apps at Kadira
Created: 2015-10-31 16:21:56.0
Updated: 2017-07-01 02:40:30.0
Pushed: 2015-12-10 10:44:40.0
Homepage: null
Size: 5
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is the typical base NodeJS server side starting project we can use. You can write code using ES2015 and this has asyncFunctions support as well.
You can start writing code inside the server
directory.
There are few ways you can run your app:
You may need to change some shell scripts in
scripts
directory according to your project.
You can write tests anywhere in the server
directory. But you need to put them inside a directory called __tests__
.
Then you can num these tests as:
npm run testonly
npm run test
will also check for lint errors as wellWe use eslint for liniting. Coding styles follows some of the rules mentioned in facebook's graphql repo.
npm run eslint
to lint the codenpm run eslintfix
to lint and fix some issues which can be fixed automatically.