https://github.com/innofang/casual-talk
Build a forum in Go. Learn from gwp and make some change.
https://github.com/innofang/casual-talk
docker go web
Last synced: about 1 month ago
JSON representation
Build a forum in Go. Learn from gwp and make some change.
- Host: GitHub
- URL: https://github.com/innofang/casual-talk
- Owner: InnoFang
- License: mit
- Created: 2020-02-24T21:42:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T12:41:53.000Z (over 6 years ago)
- Last Synced: 2025-01-10T09:20:36.803Z (over 1 year ago)
- Topics: docker, go, web
- Language: Go
- Homepage:
- Size: 800 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# casual-talk
Build a forum in Go. Learn from [gwp](https://github.com/sausheong/gwp) and make some change.
[](./LICENSE) 
## How to run
Clone this project under `$GOPATH/src`, then create a database (it's ok whatever you want to named) and create some tables
by following [`data/setup.sql`](./data/setup.sql). After that, configure your MySql username, password and database name
in [`data/sql.json`](./data/sql.json).
A MySql driver is required
```
$ go get github.com/go-sql-driver/mysql
```
then you can run it
```
$ cd $GOPATH/src/casual-talk
$ go run main.go
```
BTW, if you want to run this project in Docker directly, you need to link this container with MySQL container, that is to
say you have been pull MySQL image and run MySQL with docker before you run this.
```
$ docker build -t casual-talk .
$ docker run --link mysql:mysql -p 8080:8080 casual-talk
```