-
Notifications
You must be signed in to change notification settings - Fork 182
Examples + docs future #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Each sub directory contains a standalone [Revel](http://revel.github.io/manual) application, eg | ||
|
||
狂欢是好的,保存UTF8 。保持微笑,享受..抱怨..请让它好看;-) | ||
|
||
|
||
``` | ||
go get github.com/revel/samples | ||
revel run github.com/revel/samples/booking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these say examples now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep.. merge will sort it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean merge from upstream?
I'm going to go through and redline these changes, bear with me... |
@shawncatz If u got the source then just commit to patch.. |
Each sub directory contains a standalone [Revel](http://revel.github.io/manual) application, eg | ||
|
||
狂欢是好的,保存UTF8 。保持微笑,享受..抱怨..请让它好看;-) | ||
|
||
|
||
``` | ||
go get github.com/revel/samples | ||
revel run github.com/revel/samples/booking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean merge from upstream?
README.md
Outdated
- If you have a good sample application idea, then make some noise | ||
- If you got an app, then please make a pull request | ||
- ta ;-))))))))))))))) | ||
- Early to bed, early to rise, makes a person, healthy and wise .. (code workz) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation should be professional. No "leet" speak, avoid emoticons. Proper language and grammar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely agree. We need to keep it professional. You can be goofy in chat, but this style of language is distracting from the purpose of the words. We're not trying to convey a friendly message, we're trying to teach. Keep it simple.
booking/README.md
Outdated
|
||
* Using an SQL (SQLite) database and configuring the Revel DB module. | ||
* Using the third party [GORP](https://github.com/coopernurse/gorp) *ORM-ish* library | ||
* [Interceptors](../manual/interceptors.html) for checking that an user is logged in. | ||
* Using [validation](../manual/validation) and displaying inline errors | ||
|
||
|
||
Here's a quick summary of the files and purpose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to something like "Project Structure" or just "Structure"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
booking/README.md
Outdated
|
||
|
||
# Database Install and Setup | ||
This example used [sqlite](https://www.sqlite.org/), but u can easily adopt code to your needs with mysql, postgres, et all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"used" => "uses"
Active voice, present tense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"et al" but "etc" is shorter. Also, "u"?? Further, why is this relevant? Isn't this implied?
booking/README.md
Outdated
The booking app uses [go-sqlite3](https://github.com/mattn/go-sqlite3) database driver (which wraps the native C library). | ||
|
||
- The booking app uses [go-sqlite3](https://github.com/mattn/go-sqlite3) database driver, **which wraps the native C library**. | ||
- This means that the native c code needs to be installed first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this to something like "which depends on the c library", no emphasis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"C" is a proper pronoun
twitter-oauth/README.md
Outdated
* Fetching mentions for that Twitter account. | ||
* Tweeting on behalf of that Twitter account. | ||
|
||
The core contents of the app: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before, "Project Structure"
1. The app generates a "request token" and sends the user to Twitter. | ||
2. The user authorizes the app. | ||
3. Twitter redirects the user to the provided redirect url, including an | ||
"verifier" in the parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Twitter redirects the user to the provided URL, including a verifier
parameter".
3. Twitter redirects the user to the provided redirect url, including an | ||
"verifier" in the parameters. | ||
4. The app constructs a request to Twitter using the "request token" and | ||
the "verifier", to which Twitter returns the "access token". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"constructs a request to Twitter using request token
and verifier
, which returns an access token
."
"verifier" in the parameters. | ||
4. The app constructs a request to Twitter using the "request token" and | ||
the "verifier", to which Twitter returns the "access token". | ||
5. The app henceforth uses the access token to operate Twitter on the user's behalf. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Henceforth, the app uses access token
to ...
Upload Files | ||
========================= | ||
|
||
TODO # pedro to cosument this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"cosument" = "document" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or consummate...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to remove this TODO or do it, quickly.
Yep agree with all changes and comments.. Merge it .. |
README.md
Outdated
Each directory contains a revel application. | ||
Each sub directory contains a standalone [Revel](http://revel.github.io/manual) application, eg | ||
|
||
狂欢是好的,保存UTF8 。保持微笑,享受..抱怨..请让它好看;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this say?
booking/README.md
Outdated
|
||
### To install on OSX: | ||
### Install sqlite on OSX: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about pkg-config?
$ sudo apt-get install sqlite3 libsqlite3-dev | ||
|
||
Once you have SQLite installed, it will be possible to run the booking app: | ||
### Install sqlite on Ubuntu: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about the booking install step?
|
||
``` | ||
go get github.com/revel/samples | ||
revel run github.com/revel/samples/booking | ||
``` | ||
|
||
Visit http://revel.github.io for more info | ||
* [Booking](booking.html) | ||
- A database-driven hotel-booking application, including user management |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"hotel-booking" should be "hotel booking"
README.md
Outdated
@@ -1,13 +1,44 @@ | ||
# Sample Revel Applications | ||
|
||
Each directory contains a revel application. | ||
Each sub directory contains a standalone [Revel](http://revel.github.io/manual) application, eg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sub-directory"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, why do we need "sub" at all? In the context of this repo, "each directory" is accurate.
chat/README.md
Outdated
chatroom.go | ||
|
||
controllers | ||
app.go # The welcome screen, allowing user to pick a technology |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"welcome screen"? Is there a better term for that?
websocket.go # Handlers for the "Websocket" chat demo | ||
|
||
views | ||
# HTML and Javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there JS in the views?
twitter-oauth/README.md
Outdated
|
||
The `twitter-oauth` app uses the `mrjones/oauth` library to demonstrate: | ||
|
||
* How to do the `oauth` dance to authenticate your app to use a `Twitter` account. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"OAuth" is the correct capitalization. "dance" is not the correct term here.
Upload Files | ||
========================= | ||
|
||
TODO # pedro to cosument this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or consummate...
Upload Files | ||
========================= | ||
|
||
TODO # pedro to cosument this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to remove this TODO or do it, quickly.
Manual to the example page