qor-example
qor-example copied to clipboard
An example application showcasing the QOR SDK
QOR example application
This is an example application to show and explain features of QOR.
Quick Started
Go version: 1.8+
# Get example app
$ go get -u github.com/qor/qor-example
# Setup database
# Or if you prefer postgreSQL see the postgres_env file for its configuration.
$ mysql -uroot -p
mysql> CREATE DATABASE qor_example;
# Run Application
$ cd $GOPATH/src/github.com/qor/qor-example
$ go run main.go
Generate sample data
$ go run config/db/seeds/main.go config/db/seeds/seeds.go
Run tests (Pending)
$ go test $(go list ./... | grep -v /vendor/ | grep -v /db/)
Admin Management Interface
Qor Example admin configuration
Online Demo Website: demo.getqor.com/admin
RESTful API
Online Example APIs:
- Users: http://demo.getqor.com/api/users.json
- User 1: http://demo.getqor.com/api/users/1.json
- User 1's Orders http://demo.getqor.com/api/users/1/orders.json
- User 1's Order 1 http://demo.getqor.com/api/users/1/orders/1.json
- User 1's Orders 1's Items http://demo.getqor.com/api/users/1/orders.json
- Orders: http://demo.getqor.com/api/orders.json
- Products: http://demo.getqor.com/api/products.json
License
Released under the MIT License.