Open chat room is a multiple chat room application based on : NextJs, ExpressJs, MongooDB, Immer, WS(webSocket), Material-ui
cd ./api
yarn install
or
npm install
Set your environment settings into .env file at the root of the project :
DB_CONNECTION_URL="mongodb://localhost:27017/openchat"
PORT=3001
MONGO_USERNAME=test
MONGO_PASSWORD=test
yarn dev
or
npm run dev
yarn start
or
npm run start
cd ./wss
yarn install
or
npm install
Set your environment settings into .env file at the root of the project :
SSL_CERT=test_path
SSL_KEY=test_path
SECURE=false
PORT=5001
yarn dev
or
npm run dev
yarn start
or
npm run start
cd ./front
yarn install
or
npm install
Set your environment settings into .env file at the root of the project :
PORT=3000
API_BASE_URL=http://localhost:3001
WSS_BASE_URL=ws://localhost:5001
yarn dev
or
npm run dev
yarn build
or
npm run build
yarn start
or
npm run start