https://github.com/mensenvau/backend_assignment_nodejs
Task for job apply
https://github.com/mensenvau/backend_assignment_nodejs
javascript nodejs rabbitmq socket-io
Last synced: 9 months ago
JSON representation
Task for job apply
- Host: GitHub
- URL: https://github.com/mensenvau/backend_assignment_nodejs
- Owner: mensenvau
- Created: 2023-08-11T20:15:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-12T00:54:06.000Z (almost 3 years ago)
- Last Synced: 2025-03-25T03:48:37.621Z (over 1 year ago)
- Topics: javascript, nodejs, rabbitmq, socket-io
- Language: JavaScript
- Homepage:
- Size: 791 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test Assignment
### Тестовое задание на должность "Ведущий разработчик NodeJS"
## Clone
- Git Clone: `https://github.com/mensenvau/test_assignment.git`
- Open Folder `cd test_assignment`
## Install
### RabbitMQ
You can install the option you want depending on the OS or by installing Docker.
- MAC: `brew install rabbitmq ` [document](https://www.rabbitmq.com/install-homebrew.html)
- Docker: `docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.9-management`
#### We need start runing RabbitMQ: `brew services start rabbitmq `
### Npm
- `npm install`
## .Env setup
```
RABBITMQ_CONNETION_STRING=amqp://localhost:5672
M1_PORT=4000
M2_PORT=4001
```
_RABBITMQ_CONNETION_STRING - RABBITMQ defaults to this state, if you have something different please change it!_
## Run and test:
### Run
- `npm run start `
### Test
I think the task doesn't have complete information about what to do with the data, so I made 2 sample routers.
- `http://127.0.0.1:4000/users` - get information about all users
- `http://127.0.0.1:4000/user-info/1` , (`http://127.0.0.1:4000/user-info/`) - Get information about the user
## [Video from Youtube](https://youtu.be/dxFIbruhVAA)