First time using Go! Including the following that helped setup the backend structure
- Install Golang: https://golang.org/doc/install
- Make sure you have mysql installed and proper permissions and (npm or yarn)
- Log into mysql console and create a DB in mysql:
create database sharedchat
- Load db from sql structure sql, replace following command with your username and password:
mysql -u username -p sharedchat < sharedchat_db_structure.sql
export SHAREDCHAT_DB_URL=username:password@/sharedchat?charset=utf8
go install
yarn
ornpm install
npm install -g webpack
webpack
go-react-chat-app
- Go to localhost:5000 and use the chat!
- A Tour of Go
- Gorilla Websocket Example
- Redis, Go, & How to Build a Chat Application - Compose
- Using WebSockets on Heroku with Go
- Writing Real-Time Web Apps in Go: Chat
- separate timestamp and username from stored message
- extract reusable parts of golang server into separate funcs and files
- use redigo to register websockets and allow chat to scale above one server
- add testing for golang server
- add testing for react app
- make it prettier