https://github.com/jcmdsbr/node-basic-concepts
Learning basic concepts to create a rest api in node
https://github.com/jcmdsbr/node-basic-concepts
express learning nodejs
Last synced: about 2 months ago
JSON representation
Learning basic concepts to create a rest api in node
- Host: GitHub
- URL: https://github.com/jcmdsbr/node-basic-concepts
- Owner: jcmdsbr
- Created: 2020-09-30T19:10:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-03T19:09:08.000Z (about 4 years ago)
- Last Synced: 2025-01-27T07:30:03.344Z (4 months ago)
- Topics: express, learning, nodejs
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Node basic concepts :sunglasses:
- Learning basic concepts to create a rest api in node## Give a Star! :star:
If you liked the project, please give a star ;)## You need some of the fallowing tools :exclamation:
- Visual Studio Code
- Node 8+## Description :books:
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build
scalable network applications. In the following "hello world" example, many
connections can be handled concurrently. Upon each connection, the callback is
fired, but if there is no work to be done, Node.js will sleep.```javascript
const http = require('http');const hostname = '127.0.0.1';
const port = 3000;const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
});server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
```
### Official Links :construction:- [child_process.fork](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options)
- [cluster](https://nodejs.org/api/cluster.html)
- [Event Machine](https://github.com/eventmachine/eventmachine)
- [Twisted](https://twistedmatrix.com/trac/)