Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
wants to merge 9 commits into from
Closed

Examples + docs future #17

wants to merge 9 commits into from

Conversation

pedromorgan
Copy link
Member

Manual to the example page

@pedromorgan pedromorgan changed the title Docs dev Examples + docs future Mar 19, 2017
@notzippy notzippy added this to the v0.14 milestone Mar 19, 2017
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
Copy link
Contributor

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 ?

Copy link
Member Author

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

Copy link
Contributor

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?

@shawncatz
Copy link
Contributor

I'm going to go through and redline these changes, bear with me...

@pedromorgan
Copy link
Member Author

@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
Copy link
Contributor

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)
Copy link
Contributor

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.

Copy link
Member

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.


* 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
Copy link
Contributor

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"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed



# 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.
Copy link
Contributor

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

Copy link
Member

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?

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
Copy link
Contributor

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.

Copy link
Member

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

* Fetching mentions for that Twitter account.
* Tweeting on behalf of that Twitter account.

The core contents of the app:
Copy link
Contributor

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.
Copy link
Contributor

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".
Copy link
Contributor

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.
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"cosument" = "document" ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or consummate...

Copy link
Member

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.

@pedromorgan
Copy link
Member Author

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 。保持微笑,享受..抱怨..请让它好看;-)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this say?


### To install on OSX:
### Install sqlite on OSX:
Copy link
Member

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:
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"sub-directory"

Copy link
Member

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
Copy link
Member

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
Copy link
Member

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?


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.
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

@notzippy notzippy mentioned this pull request May 3, 2017
@notzippy notzippy closed this May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.