https://github.com/ppogulailo/socket-io-comments
https://github.com/ppogulailo/socket-io-comments
captcha docker jwt-authentication nestjs postgresql prisma react server-client-chat socket-io
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ppogulailo/socket-io-comments
- Owner: ppogulailo
- Created: 2023-01-20T22:29:28.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-30T12:25:05.000Z (over 3 years ago)
- Last Synced: 2025-10-09T13:13:11.924Z (9 months ago)
- Topics: captcha, docker, jwt-authentication, nestjs, postgresql, prisma, react, server-client-chat, socket-io
- Language: TypeScript
- Homepage:
- Size: 473 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instructions to run the Project
## With Docker
Add an environment file to the project
Add a .env file in the server, client folder (at the top of your server, client folder, so nest can find it)
- add your own REACT_APP_RECAPTCHA_SECRET in the .env file on client
- add your own RECAPTCHA_SECRET in the .env file on server
Command:
`docker-compose up`
and then visit `localhost:3000`
### Tipps & Tricks for docker
If you need to remove docker images or containers you can use one of the following commands.
Command to remove all images:
`docker rmi -f $(docker images -a -q)`
Command to remove all containers:
`docker rm -vf $(docker ps -a -q)`
## Without Docker
### 2. Add an environment file to the project
Add a .env file in the api folder (at the top of your api folder, so nest can find it)
- add your own DATABASE_URL in the .env file
- add your own JWT_REFRESH_SECRET in the .env file
- add your own JWT_ACCESS_SECRET in the .env file
- add your own RECAPTCHA_SECRET in the .env file
Add a .env file in the client folder (at the top of your client folder)
- add your own DATABASE_URL in the .env file
- add your own JWT_REFRESH_SECRET in the .env file
- add your own JWT_ACCESS_SECRET in the .env file
- add your own REACT_APP_RECAPTCHA_SECRET in the .env file
Example of file:
DATABASE_URL=
JWT_REFRESH_SECRET=jklasjdoij897231na
JWT_ACCESS_SECRET=jklasjdoij897231na
### Start the Backend in dev Mode after you added the .env file
`cd server`
`npm install`
`npm start`
### Start the Frontend in dev Mode after you added the .env file
`cd client`
`npm install`
`npm start`
etc. would be great.