A simpler version of 310's ChatApp in Golang. A user will visit a webpage, assign themselves a username, and send messages in a chat room (just like 310's chatapp).
- Clone repository
git clone https://github.com/arixwang/chatty-appy.git - Change your working directory to the cloned repository's directory:
cd chatty-appy - Run the
go mod initcommand to initialize the Go module. Replace github.com/[GITHUB USERNAME]/chatty-appy with the actual import path you intend to use:go mod init github.com/[GITHUB USERNAME]/chatty-appy - Download Dependencies: use the go get command to download them:
go get - To install the required dependencies, run
npm installin your project directory - Run Your Application: After initializing the module and downloading the dependencies, you can run your Go application using
go run main.go. Navigate tolocalhost:8888in your browser. You should see the chatty appy UI
I used heroku for deployment. You can find instructions here: https://devcenter.heroku.com/articles/heroku-cli?ref=hackernoon.com. You'll get a URL generated that can be used to test chatty appy.
Once you commit the latest changees run
heroku git:remote -a [CLI WEBSITE]
git push heroku main
Then go to the URL Heroku generated to see the chatapp