https://github.com/tauhidul0821/best-structure-nodejs
https://github.com/tauhidul0821/best-structure-nodejs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tauhidul0821/best-structure-nodejs
- Owner: tauhidul0821
- Created: 2021-02-09T11:50:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T08:17:00.000Z (about 1 year ago)
- Last Synced: 2024-07-09T07:55:08.059Z (11 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# best-structure-nodejs
# for run .sh file
```shell
chmod +x yourShFileName.sh
```## which package use
- express
- express-jwt
- cors
- dotenv
- auth0
- facker.js
- commander.js
-
-# nodejs global service
### Product requirement
- nodejs er api theke service call dibe oi service a crud thakbe okay
- use fackerJS for generate massive amounts of fake data in the browser and node.js
- swagger for api documentation
- log for log everything
- cach manage with redis
- every error occuer to one page then entry in sentry.io
- login
- language change
- exception handle
- only change database string than gose to difrent database
- need asyncronos with simple function , like authmedileware set , using socket.io
- code generator , because when you need to create own controllar click it
- added ai for create api in just one milisecond# child process example
- hit this url first : 'http://localhost:5000/api/v1/prime/60000000000000'
- that is runing diffrent process
- that again hit another url that will not stop response
- http://localhost:5000/api/v1/prime/600
- now question is what is child process
- The node:child_process module provides the ability to create subprocesses in a manner that is similar, but not identical, to popen(3). This capability is primarily provided by the child_process.spawn() function