https://github.com/spudmashmedia/spudmash-hack-randomuser-expressjs
Quick Hack Tasks with expressjs, mochajs
https://github.com/spudmashmedia/spudmash-hack-randomuser-expressjs
api excercise expressjs javascript mocha nodejs pm2 rest supertest
Last synced: 2 months ago
JSON representation
Quick Hack Tasks with expressjs, mochajs
- Host: GitHub
- URL: https://github.com/spudmashmedia/spudmash-hack-randomuser-expressjs
- Owner: spudmashmedia
- License: mit
- Created: 2017-04-16T09:52:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T06:56:35.000Z (about 9 years ago)
- Last Synced: 2025-01-16T19:52:25.593Z (over 1 year ago)
- Topics: api, excercise, expressjs, javascript, mocha, nodejs, pm2, rest, supertest
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Spudmash-hack-randomuser-ExpressJS
Quick Hack Tasks:
Integrate the http://randomuser.me REST service with:
Express
Each tech will consist of:
Service Layer
Automated Test (unit, integration)
## Installation
install node_modules with
```
npm i
```
## Usage
| npm command | action |
|------|--------------|
| npm run build | webpack build, deployes to /dist folder |
| npm run develop | uses node-dev to launch http://localhost:8080 |
| npm run start | uses pm2 cluster deployment (warning: will utilize ALL cpus on server) - will launch /dist/api.js|
| npm run monitor | uses pm2 monitor mode - monitors all instances on cluster|
| npm run test | runs all Mocha tests |
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## History
| Date | Version | Description|
|-------|----------|-------------|
|2017-04-16 | 1.0 | Some hacks
## TODO
create dockerfile
## License
MIT