Real-time chat application. This application allows users to chat with each other in real-time. Users can create an account, login, and chat with other users.
Server Side
- unzip the file and run: docker run --name postgres15 -p 5433:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=[PASSWORD] -d postgres:15-alpine
- Run to make DB connection: docker exec -it postgres15 psql
- Run to create DB: docker exec -it postgres15 createdb --username=root --owner=root nimble-chat
- Download migrate using Yarn
- Run: migrate -path db/migrations -database "postgresql://root:[PASSWORD]@localhost:5433/nimble-chat?sslmode=disable" -verbose up
- Now the database and the docker container should be set up.
- cd into server and run: go run cmd/main.go
Client Side
- cd into client and run: npm install
- Run: npm start
- This should do!