Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farynaio/simple-node-app
Node.js server/client with UDP service discovery.
https://github.com/farynaio/simple-node-app
chai express mocha nodejs restful
Last synced: 2 days ago
JSON representation
Node.js server/client with UDP service discovery.
- Host: GitHub
- URL: https://github.com/farynaio/simple-node-app
- Owner: farynaio
- License: mit
- Created: 2018-11-06T10:26:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T15:31:04.000Z (about 6 years ago)
- Last Synced: 2023-08-27T14:15:11.628Z (about 1 year ago)
- Topics: chai, express, mocha, nodejs, restful
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Server/Client with UTP discovery service
Data is loaded to database by BaseMongoConnection.loadData(). This is abstract class, with has 2 implementations: MongoConnection and MemoryMongoConnection (in-memory implementation for test purposes).
## Requirements
Node.js 6.14.4+
Mongodb 3+-------------------------------------------------------------------------------
## To build
Using yarn
```
yarn install
```using npm
```
npm install
```-------------------------------------------------------------------------------
## To run tests
Using yarn
```
yarn test
```using npm
```
npm test
```-------------------------------------------------------------------------------
## To start development server
Using yarn
```
yarn run server:dev
```or
```
yarn run server:dev
```Using npm
```
npm run server:dev
```or
```
npm run server:dev
```-------------------------------------------------------------------------------
## To start production server [PM2](http://pm2.keymetrics.io)
Using yarn
```
yarn run server:prod
```using npm
```
npm run server:prod
```-------------------------------------------------------------------------------
## To start development client
Using yarn
```
yarn run client:dev
```using npm
```
npm run client:dev
```-------------------------------------------------------------------------------
## To start production client
Using yarn
```
yarn run client:prod
```using npm
```
npm run client:prod
```-------------------------------------------------------------------------------
## Enjoy!