A server that serve Rest API and Websocket using socket IO for my real time messaging messaging app.
Get a copy of the repo
In the root directory
npm install
For the frontend web application to use .
https://github.com/andreimandrique/messaging-app-frontend
Create .env file in the root directory and add the following
DATABASE_URL="postgresql://<db role>:<db password>@<db host>/<db name>?sslmode=require"
JWT_SECRET="<Your JWT secret>"
FRONTEND_URL="<Your frontend web application>"
In the root folder run
npx prisma generate
In development
npm run dev
In production
npm run start
Open your browser and navigate to http://localhost:3000
- Log in
- Register Account
- Verify
- Join Room
- Real time message