rzgry / express-rest-api-template Goto Github PK
View Code? Open in Web Editor NEWMinimal starter project for a Node.js RESTful API based off express generator
License: MIT License
Minimal starter project for a Node.js RESTful API based off express generator
License: MIT License
Current .travis.yml
uses the default script
which just runs npm test
https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#default-build-script
Would be nice to get travis to run both eslint (npm run lint
) and the tests (npm test
)
Example travis config with a linting step:
https://gist.github.com/ronapelbaum/ef3c3459f01b002d0d719ca205401174
The app is currently using the bin/www
that was automatically generated by express generator.
So it has a whole bunch of linter warnings when ran against the eslint configuration.
Right now eslint is disabled in this file by this line:
Express-REST-API-Template/src/bin/www
Line 3 in 74cb4c4
Need to remove the /* eslint disable */
line and fix the linter warnings in bin/www
Can lint just that file by running npx eslint src/bin/www
Should probably just use eslint-disable-line for any no-console
errors, and fix all of the other errors (such as no-var
).
Ex:
...
console.log(`Listening on ${bind}`); // eslint-disable-line no-console
...
Can you please specify your repo's license? Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.