Giter Site home page Giter Site logo

revel.github.io's Introduction

Revel Framework

Build Status License Go Report Card

A high productivity, full-stack web framework for the Go language.

Current Version: 1.1.0 (2022-04-11)

Supports go.mod package management

Quick Start

Install Revel:

go install github.com/revel/cmd/revel@latest

Create & Run your app:

revel new -a my-app -r

Open http://localhost:9000 in your browser and you should see "It works!"

Community

Learn More

Contributing

Contributors

revel.github.io's People

Contributors

ak2344 avatar anonx avatar brendensoares avatar demonshreder avatar digininja avatar golddranks avatar j3rrywan9 avatar jeevatkm avatar kberov avatar landaire avatar lbaker2 avatar levpaul avatar majorcode avatar miguelff avatar mohan08p avatar nguyendangminh avatar nigelramsay avatar notzippy avatar papamarfo avatar pedromorgan avatar pushrax avatar rclayton avatar renfredxh avatar rikvdh avatar rolfedh avatar royallthefourth avatar shawncatz avatar wariosolis avatar yonex avatar zmullett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

revel.github.io's Issues

Where to put 'user-id' of authenticated user

Hi,

Happy New Year and thanks for great framework!

I am building an API using Revel and want to secure it using token mechanism.
I want something simple ( I don't need role based ) and powerful at the same time.
So I created a simple config file, where routes and policies ( anonymous / authorized ) are defined.

Then I use revel.InterceptMethod(authmodule.Secure, revel.BEFORE) to validate each request for proper token.
After the user is successfully validated, I want to put his 'userId' somewhere so I could use it in controllers. I don't think session is a good place as all my servers are stateless and authentication token is sent with each http request.

What is the best place to put it?

Thank you in advance!

Add favicon

Please add a favicon to make the page easier to find for people with lots of tabs opened!

update banner messages

the docs which show the banner message should be updated to reflect the change to revel.github.io

Please add info about people behind Revel.

Hi
I would like to know more about people behind Revel. Who is doing it, what is their motivation. What guarantee I have that this project will be kept alive in future (is it backed by some company? What if authors will get new job? Or family? etc) Will there be support? generally I would like to evaluate not just by features but also by stability-maturity of the team behind it.

So the issue: please add some info to the website, that addresses my above questions.

Thanks

Pre text is white

I see all <pre> wrapped code examples as white text. Impossible to read.

TODO: render

Explain more abounr c.Render()

explain c.RenderTemplate()

Also demo RenderText()

Generating godoc files is broken

https://github.com/revel/revel.github.io/blob/master/docfile.go

Seems for go1.3's godoc that we can't simple provide 1 template override e.g. package.html. It complains that other template are missing.

This is a big issue since we want to enhance our godoc instructions to be as useful as the current manual. The biggest reason we want to do this is so the manual will stay up to date if we don't have to update it separately as the code evolves.

TODO: Explain Skel

Explain the skeleton more..

the controlers and the fact its used in modulles..

and closelly intertwined

"Creating a New Revel Application" fails because of unmet dependencies

In https://revel.github.io/tutorial/createapp.html, it seems like running myapp fails due to unmet dependencies, as shown below.

  • What steps should the user take to prevent these errors?
  • Would it make sense to add these steps to tutoria/gettingstarted.md or tutorial/createapp.md?
[rolfedh@fedora-desktop ~]$ export GOPATH="/home/rolfedh/gocode"
[rolfedh@fedora-desktop ~]$ cd $GOPATH
[rolfedh@fedora-desktop gocode]$ ls
bin  myapp  pkg
[rolfedh@fedora-desktop gocode]$ rm -rf myapp/
[rolfedh@fedora-desktop gocode]$ revel new -a myapp
Revel executing: create a skeleton Revel application
Your application has been created in:
   /home/rolfedh/gocode/myapp

You can run it with:
   revel run -a  myapp
[rolfedh@fedora-desktop gocode]$ revel run -a  myapp
ERROR 19:37:08   file.go:372: Error                                    seeking=github.com/revel/revel count=1 App Import Path=github.com/revel/revel filesystem path=github.com/revel/revel errors="[-: no required module provides package github.com/revel/revel; to add it:\n\tgo get github.com/revel/revel]" 
Downloading related packages ... completed.
Revel executing: run a Revel application
WARN  19:37:10 harness.go:175: No http.addr specified in the app.conf listening on localhost interface only. This will not allow external access to your application 
Changed detected, recompiling
Parsing packages, (may require download if not cached)... Completed
/home/rolfedh/gocode/go/pkg/mod/github.com/revel/[email protected]/cache/memcached.go
WARN  19:37:11  build.go:420: Could not find in GO path                file=../../go/pkg/mod/github.com/revel/[email protected]/cache/memcached.go 
ERROR 19:37:11 harness.go:239: Build detected an error                  error="Go Compilation Error (in ../../go/pkg/mod/github.com/revel/[email protected]/cache/memcached.go:11): no required module provides package github.com/bradfitz/gomemcache/memcache; to add it:" 

Error compiling code, to view error details see proxy running on http://:9000


Time to recompile 405.916071ms

Use godoc.com, abandon inbuilt godoc

I've just been playing around with a script to examine the output..

My conclusion is that it gonna be a pain in the butt.. for example linking from the test suite to an url.Values, calls /pkg/net/url/#Values

I understand that we want the stuff to look nice in revel manual, and no one as much as myself, but i prefer the easier (and maybe more complicant option), instead of having to maintain also...

As far as the "page goes".. I call it the "api-docs" page..
and I think we would just links to all the revel core, modules, etc.. third parties.. or godocs..

Pete's TODO

TODO

  • Explain go env command to check settings
  • Add link from revel command to "getting started", ie install and gopath

docs vs modules

Am updating docs so need clarifications on a some module issues..

look here http://revel-docs.daffodil.uk.com/manual/modules.html


An empty import path disables the module:

 module.mymodulename =

is that the same as

 #module.mymodulename = /my/dodgy/mod

Are there any other implications..?? eg not imported etc ??

I assume that what we want is that if the module path not exits crash, and not imported ??

what happens if I import module and invalid path?

spelling error in documentation

In the Config section of the database section in the documentation, a code example contains a method argument spelling error. Here is an image (error in line 3 of the code):
image
TL;DR: localhost is spelled locahost

Install notes out of date

The install notes here:

https://revel.github.io/tutorial/gettingstarted.html

Are out of date. When you try to use the go get command to install revel it fails due to changes in the way modules are installed.

$ go get github.com/revel/revel
go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

Docs for past releases

One thing that has been frustrating while using Ember JS is that their doc website only shows the latest version of the docs. My company doesn't update its 3rd party libraries often and so we aren't always using the latest code. I need to see the correct docs for my version

Revel, I'm sure, will have the same issue. We need to make past versions of the docs viewable.

@pedromorgan Thoughts?

Dbugging in intellij

Add to docs
from revel/revel#1072

Just for other people with the same question.

Create your project, for this example i will be using canonical "revel new github.com/myaccount/my-app"
"revel run github.com/myaccount/my-app" to generate tmp/main.go - this file is needed by intellij
Shutdown the running server
Create project in intellij from existing sources
Create run configuration and in "Program arguments" add "-importPath github.com\myaccount\my-app -srcPath \src -runMode dev"
Point "File" to \src\github.com\myaccount\my-app\app\tmp\main.go
In "before launch" add "Run external tool". There:
Program: \bin\revel.exe
Paramerets: build github.com/myaccount/my-app
This works for me on Windows 8

Issue with Hello World App docs

While running through the tutorial and Hello World App, I get:

Not Found
No matching route found:  /App/Hello?myName=Steve

I have changed the controller and added the html file in the App folder. Something mismatched with a new version?

I'm on go version go1.9.2 windows/amd64.

Thanks!

Docs Deploy

Couple issues

Where are the docs build and released?

I assume this is not github pages right ?
So am compeltely perplexed where the docs "compilation" happen, is it on a workstation, server, jenkins ? or compiled by github upon commit ???

Multiversion

  • need to get a grip on versioning, ie master and next
  • To deal with this, maybe we copy django and have a current docs, at latest and others in dirs
    ie
/master/manual/index.html
/0.11/manual/index.html << even a symlink to above
/0.9/manual/index.html << legacy and nuked after 1.5 years
/next/manual/index.html << docs for next version

Getting Started Improvements

  • No need to go get revel lib
  • Need to warn (or provide windows examples) when setting env vars that windows vs *nix does it differently

revel/revel binary

There seems to be a binary at revel/revel ?

what is this and its purpose

Multi Languague

Make it more multilingual also.. (I think in Welsh when i code docs = idiots language)

Also we need chinese and nippongo translations..

Warn users about test go files,

Go test files are written with _test.go Revel test files cannot be written this way since in revel we compile these files to run them

Docs Master = Pedro

Right I've had enough of waiting..

I think I got a good grip on what we want, as an end user..

So unless anyone complains..
I will nominate myself as docs master..
so any docs issues I wanna know..

The deal is that

  1. we merge develop into master NOW today.. to make docs proper..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.