https://github.com/open-template-hub/business-logic-server-template
Business Logic Server Template is a generic open-source server that encodes the real-world business rules that determine how data can be created, stored, and changed. It saves you from rewriting boilerplate code. It works best with other Open Template Hub products.
https://github.com/open-template-hub/business-logic-server-template
mongodb mongoose nodejs server template typescript
Last synced: 11 months ago
JSON representation
Business Logic Server Template is a generic open-source server that encodes the real-world business rules that determine how data can be created, stored, and changed. It saves you from rewriting boilerplate code. It works best with other Open Template Hub products.
- Host: GitHub
- URL: https://github.com/open-template-hub/business-logic-server-template
- Owner: open-template-hub
- License: mit
- Created: 2020-05-23T11:15:31.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-02-12T09:19:27.000Z (over 3 years ago)
- Last Synced: 2024-05-02T01:38:41.365Z (about 2 years ago)
- Topics: mongodb, mongoose, nodejs, server, template, typescript
- Language: HTML
- Homepage: https://opentemplatehub.com/product/server/business-logic-server-template
- Size: 893 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Open Template Hub - Business Logic Server Template v5
[](LICENSE)
[](https://github.com/open-template-hub/business-logic-server-template/issues)
[](https://github.com/open-template-hub/business-logic-server-template/pulls?q=is%3Apr+is%3Aclosed)
[](https://github.com/open-template-hub/business-logic-server-template/commits/master)
[](https://github.com/open-template-hub/business-logic-server-template/releases)
[](https://sonarcloud.io/dashboard?id=open-template-hub_business-logic-server-template)
Business Logic Server Template is a generic open-source server that encodes the real-world business rules that determine how data can be created, stored, and changed. It saves you from rewriting boilerplate code. It works best with other Open Template Hub products.
## Ways to Begin
### 1. Express Deploy
Deploy this template to Heroku
[](https://heroku.com/deploy?template=https://github.com/open-template-hub/business-logic-server-template)
### 2. Start with Server Generator
Create your server with Server Generator Package
[](https://www.npmjs.com/package/@open-template-hub/server-generator)
### 3. GitHub Template
Use this repository as a Template
[](https://github.com/open-template-hub/business-logic-server-template/generate)
## Installations
Install **nodejs** and **npm** via **[nodejs.org](https://nodejs.org)**.
Check installed versions of **nodejs** and **npm** via running following commands:
```
node -v
npm -v
```
Check project's current **nodejs** and **npm** version from **[package.json](package.json)**.
## Environment Variables
If you don't give **RESPONSE_ENCRYPTION_SECRET**, response encryption mechanism will be disabled automatically.
``` applescript
PORT=4002
PROJECT=OTH
MODULE=BusinessLogicServer
ENVIRONMENT=Local
MONGODB_URI={Database Connection Url}
MONGODB_CONNECTION_LIMIT={MongoDB Connection Limit}
CLOUDAMQP_APIKEY={MQ Api Key}
CLOUDAMQP_URL={MQ Connection Url}
BUSINESS_LOGIC_SERVER_QUEUE_CHANNEL=oth_business_logic_queue
ORCHESTRATION_SERVER_QUEUE_CHANNEL=oth_orchestration_queue
REDISCLOUD_URL={Redis Connection Url}
REDIS_CONNECTION_LIMIT={Redis Connection Limit}
ACCESS_TOKEN_SECRET={Access Token Secret}
RESPONSE_ENCRYPTION_SECRET={Response Encryption Secret}
```
## Http Requests
You can find list of available http request in the [requests](assets/requests) directory. You can run http requests directly via **WebStorm**, for more information check out: [jetbrains.com/help/idea/http-client-in-product-code-editor.html](https://jetbrains.com/help/idea/http-client-in-product-code-editor.html)
## Contributors

Furkan Yavuz
💬 📖 👀

Fatih Turker
💬 📖 👀

Mert Sarac
💬 📖 👀
## Contributing
Refer to **[CONTRIBUTING.md](https://github.com/open-template-hub/.github/blob/master/docs/CONTRIBUTING.md)** to see how to contribute to Open Template Hub.
## Code of Conduct
Refer to **[CODE_OF_CONDUCT.md](https://github.com/open-template-hub/.github/blob/master/docs/CODE_OF_CONDUCT.md)** to see contributor covenant code of conduct.
## LICENSE
The source code for this project is released under the [MIT License](LICENSE).