You can see screenshots of the messenger below
npm install
илиyarn install
- Create
.env
file. - Install MongoDB and start it.
- Run command
npm start
oryarn start
.
I use nodemailer
. But can use to any SMTP-server.
-
Registration to mailtrap.io
-
Enter to your account on this service.
-
In list "Inboxes" open "Demo inbox".
-
Get your information about your SMTP or POP3-server.
-
Create
.env
file atserver/
and enter your values in it. More on this below.NODE_ENV=development PORT=3003 JWT_SECRET= JWT_MAX_AGE= NODEMAILER_HOST= NODEMAILER_PORT= NODEMAILER_USER= NODEMAILER_PASS= CLOUDINARY_NAME= CLOUDINARY_API_KEY= CLOUDINARY_API_SECRET=
-
Specify in the
NODEMAILER_HOST
and etc the data that gave you mailtrap.io. -
Restart your backend.
-
After every registration of an account in chat, in section "Demo inbox" (Mailtrap) you will receive confirmation emails.
P.S.: You can also confirm your account without Mailtrap. Just find your user in the DB and specify confirmed: true
or follow the link http://localhost:{FRONTEND_PORT}/signup/verify?hash={HASH}
.
Need regisration on the site cloudinary.com
Into file .env
you need to specify parameters for Cloudinary API. Follow the link Dashboard and copy your API-parameters. Below is a screenshot where you can take your API-parameters.
Stack which I'm use:
Frontend:
- ReactJS
- Redux
- React Router
- Axios
- Ant Design
- date-fns
- Formik
Backend:
- NodeJS
- TypeScript
- Express
- Mongoose
- Multer
- Nodemailer
- Socket.io
- JWT
- Cloudinary