Chat App
- npm run build
- npm run dev
- npm run start
- npm run prod
- npm run test
- npm run coverage
- docker-compose build
- docker-compose up
Variable | Description | default |
---|---|---|
PORT | Server port | 3001 |
MONGODB_HOST | Mongo host | localhost |
MONGODB_PORT | Mongo port | 27017 |
MONGODB_BASE | Mongo database | shortened |
LOG_LEVEL | Level to print logs | INFO (log4js) |
LOG_DAYS | Days to keep logs | 15 |
LOG_PATH | path to save logs | logs/ |
MAX_LENGTH_URL | max URl short length | 8 |
RABBIT_MQ | rabbintmq url | amqp://localhost |
- typescript@3.8.3
- node@12.16.1
- mongoose@5.9.6
- socket.io@5.x.x
- express@4.17.1
- mocha@7.1.1
- MongoDB@3.6.3
- Rabbitmp@3
# Mandatory Requirements Meet
- [x] Register and login of users.
- [x] Allow message commands such as: /stock=stock_code
- [x] Decoupled bot using RabbitMQ
- [x] Bot parses the CSV and return the stack in format “APPL.US quote is $93.42 per share”
- [x] Messages ordered by timestamp and limit is 50 messages
# Bonus
- [X] Have more than a chat room
- [X] Unit testing
- [x] Handle messages that are not understood by the bot.