Giter VIP home page Giter VIP logo

grails-demo-app's Introduction

#grails-demo-app

Summary

The grails-demo-app writtern in Grails(2.x) and relies on a SQL database for storage(currently PostgreSQL).

Environment

  • Grails - YYoga server based on grails 2.3.5, can choose either one from the two options to install it:
    1. use grails binary, http://www.grails.org/download
    2. use gvm to manage grails install and versions (Recommended). Once gvm installed, issue below command to install grails 2.0.4: $ gvm install grails 2.3.5
  • Postgres - Assume Postgres 9.x installed
  • Git - Assume git installed
  • IDE support - Develop yyoga server with your favorite IDE
    1. IDEA
    2. GGTS

Quickstart

  1. Setup database
  • create user "yoga" with password "yoga" for yoga server $ createuser -h localhost -P -e yoga
  • create database sample for yoga server $ createdb -h localhost -U yoga -e sample
  • create quartz tables(quartz_tables_postgres.sql which located in the root of the project) $ psql -h localhost -U yoga -d sample -f ./quartz_tables_postgres.sql
  1. Configure db
  • configure datasource(/grails-app/conf/DataSource.groovy), make sure the datasource section match your dev database:
  environments {
    development {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop','update'
            driverClassName = "org.postgresql.Driver"
            url = "jdbc:postgresql://localhost:5432/sample"
            username = "yoga"
            password = "yoga"
        }

        hibernate {
            show_sql = false
        }
    }
    ...
  1. Start server $ grails run-app

grails-demo-app's People

Contributors

sky-wang 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.