Привіт! Ловіть на разі 2 домашки по ноді.
Task 1: NodeJS (No express)
- Run server on port 5000.
- Send 'Greeting from server!' as h1 tag on '/' path.
- Send 'Welcome to data path' as paragraph on '/data' path.
Task 2: Express.js
- Run express server and rewrite previous task.
- Create script which should create file .txt ,and write there numbers from 1 to 10 (each number in new line).
- Create script which should read .txt file from same folder with random text inside, show this text in terminal and remove file.