https://github.com/navono/web-framework-tutorial
A sample source demonstrate different JavaScript web framework
https://github.com/navono/web-framework-tutorial
dockerfile expressjs javascript
Last synced: 2 months ago
JSON representation
A sample source demonstrate different JavaScript web framework
- Host: GitHub
- URL: https://github.com/navono/web-framework-tutorial
- Owner: navono
- License: mit
- Created: 2017-12-22T01:12:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T11:17:52.000Z (over 8 years ago)
- Last Synced: 2025-03-11T18:54:55.612Z (over 1 year ago)
- Topics: dockerfile, expressjs, javascript
- Language: JavaScript
- Size: 124 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Express-demo
A sample source demonstrate Express web framework


[](https://github.com/navono/learningWebFramework/blob/master/LICENSE)

**!!Attention!!**
In Mongoose(current version: 4.13.7), the callback in `get()` function can not be an [Arrow function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#No_binding_of_arguments).
see issue [5646](https://github.com/Automattic/mongoose/issues/5646)
## Installation
```sh
yarn
```
## Usage example
1. Build docker image:
> docker build -t express-demo:latest .
2. Run MongoDB
> docker pull mongo
docker run -v -d /data/mongodb_data:/data/db -p 27017:27017 --name mongo mongo --smallfiles
Use mongodb client(for example Robo 3T) to check whether mongdb is running.
3. Run express demo
> docker run -dit -p 3000:3000 --name demo --link mongo:mongo express-demo
4. Check it
> curl localhost:3000/catalog
## Development setup
> yarn devstart
## Release History
* 0.0.1
* Work in progress
## Meta
[](https://twitter.com/navono1)
[](mailto:navono007@gmail.com)
## License
[](https://github.com/navono/learningWebFramework/blob/master/LICENSE)
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request
[npm-image]: https://img.shields.io/npm/v/datadog-metrics.svg?style=flat-square
[npm-url]: https://npmjs.org/package/datadog-metrics
[npm-downloads]: https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[wiki]: https://github.com/yourname/yourproject/wiki