Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielhdezller/chat-room
https://github.com/danielhdezller/chat-room
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielhdezller/chat-room
- Owner: danielhdezller
- Created: 2023-04-21T08:57:20.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2023-04-26T12:30:26.000Z (over 1 year ago)
- Last Synced: 2024-11-12T01:43:45.520Z (2 months ago)
- Language: TypeScript
- Size: 389 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat-Room
Its a chat room with users and messages.## Docker
```bash
# start the DB
$ cd ./docker
# To run db at docker Development | Test Mode
$ docker-compose up chat-room-sql-server
# To run server and db at docker Production Mode
$ docker-compose up
```## Installation
```bash
# install the node modules
$ cd ./project
$ yarn
```## Env files
-At Project:
Copy at the project folder the "config.json.example-development" with the name "config.json" or to run the test "config.json.example-test" with the name "config.json".-At Docker:
copy the .env.example as .env## Typeorm
```bash
# Run initial migrations.
$ yarn typeorm migration:run
```## Running the app
```bash
# development
$ yarn start:dev# production mode
$ yarn start:prod
```## Test
```bash
# unit tests
$ yarn test
```## Note:
This project works with the same DB for Test and Development mode. It can be solve by adding a DB-Test running at Docker## Stay in touch
- Author - [Daniel Hernández](https://github.com/danielhdezller)
- LinkedIn - [LinkedIn](https://www.linkedin.com/in/daniel-hernandez-ller/)