Giter VIP home page Giter VIP logo

revel_mgo_blog's Introduction

Welcome to Revel

Getting Started

A high-productivity web framework for the Go language.

Start the web server:

revel run myapp

Run with --help for options.

Go to http://localhost:9000/ and you'll see:

"It works"

Description of Contents

The default directory structure of a generated Revel application:

myapp               App root
  app               App sources
    controllers     App controllers
      init.go       Interceptor registration
    models          App domain models
    routes          Reverse routes (generated code)
    views           Templates
  tests             Test suites
  conf              Configuration files
    app.conf        Main configuration file
    routes          Routes definition
  messages          Message files
  public            Public assets
    css             CSS files
    js              Javascript files
    images          Image files

app

The app directory contains the source code and templates for your application.

conf

The conf directory contains the application’s configuration files. There are two main configuration files:

* app.conf, the main configuration file for the application, which contains standard configuration parameters
* routes, the routes definition file.

messages

The messages directory contains all localized message files.

public

Resources stored in the public directory are static assets that are served directly by the Web server. Typically it is split into three standard sub-directories for images, CSS stylesheets and JavaScript files.

The names of these directories may be anything; the developer need only update the routes.

test

Tests are kept in the tests directory. Revel provides a testing framework that makes it easy to write and run functional tests against your application.

Follow the guidelines to start developing your application:

Contributing

We encourage you to contribute to Revel! Please check out the Contributing to Revel guide for guidelines about how to proceed. Join us!

revel_mgo_blog's People

Contributors

zhjh1209 avatar

Watchers

James Cloos avatar  avatar

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.