Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinriyo/beego_stury
http://d.hatena.ne.jp/yuheiomori0718/20140102/1388664225
https://github.com/shinriyo/beego_stury
Last synced: 19 days ago
JSON representation
http://d.hatena.ne.jp/yuheiomori0718/20140102/1388664225
- Host: GitHub
- URL: https://github.com/shinriyo/beego_stury
- Owner: shinriyo
- Created: 2014-09-29T09:03:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-30T11:35:46.000Z (about 10 years ago)
- Last Synced: 2024-04-13T16:17:06.031Z (7 months ago)
- Language: Go
- Size: 2.48 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Beegoの練習
## まえがき
http://d.hatena.ne.jp/yuheiomori0718/20140102/1388664225#c
コチラを参考にした
## 準備
```zsh
mkdir ~/gopath
``````zsh:~/.zshrc
#bee
export GOPATH=~/gopath
export PATH=$PATH:$GOPATH/bin/bee
```権限
```zsh
sudo chmod 775 /usr/local/go/bin
```## beegoインストール
```zsh
go get github.com/astaxie/beego
go get github.com/beego/bee
```## MySQLでの操作
#ユーザbeegoとパスワードbeegoを設定
```sql
GRANT ALL PRIVILEGES ON *.* TO beego@'localhost' IDENTIFIED BY 'beego' WITH GRANT OPTION;
SELECT host,user FROM mysql.user;
```# beeappのデータベースを生成
```sql
CREATE DATABASE beeapp;
SHOW DATABASES;
```
# 起動```zsh
bee run
```アクセス
http://localhost:8080/