Skip to content

Commit

Permalink
working version of docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
munntjlx committed Apr 2, 2019
0 parents commit 0a7f4cc
Show file tree
Hide file tree
Showing 1,213 changed files with 400,300 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory" : "public/bower_components"
}
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL="dbname=jqplay sslmode=disable"
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bin/jqplay
gin-bin
node_modules
public/bower_components
public/css
public/js
public/index.tmpl
assets/tmp
.env
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sudo: false
language: go
go:
- 1.11.1
env:
- TRAVIS_NODE_VERSION="7"
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
script:
- bin/build
- bin/test
notifications:
email: false
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:latest

RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
nodejs \
&& curl -sL https://deb.nodesource.com/setup_8.x > /bin/getnpm \
&& chmod +x /bin/getnpm \
&& /bin/getnpm \
&& apt-get install npm \
&& npm install --global grunt-cli bower \
&& rm -rf /vr/lib/apt/lists/*

ENV PORT 80

ADD . $GOPATH/src/github.com/jingweno/jqplay
WORKDIR $GOPATH/src/github.com/jingweno/jqplay
RUN bin/build
EXPOSE 80

CMD ["bin/jqplay"]
157 changes: 157 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/sirupsen/logrus"
version = "1.0.3"

[[constraint]]
branch = "master"
name = "github.com/jmoiron/sqlx"

[[constraint]]
branch = "master"
name = "github.com/joeshaw/envdecode"

[[constraint]]
branch = "master"
name = "github.com/lib/pq"

[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.1.0"

[[constraint]]
branch = "master"
name = "github.com/unrolled/secure"

[[constraint]]
name = "gopkg.in/gin-gonic/gin.v1"
version = "1.2.0"

[metadata.heroku]
root-package = "github.com/jingweno/jqplay"
install = [ "./cmd/..." ]
ensure = "false"
6 changes: 6 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function(grunt) {
grunt.loadTasks('tasks');
grunt.registerTask('build', "Builds the application.",
['clean', 'concat', 'cssmin', 'uglify', 'replace']);
grunt.option('ts', new Date().getTime());
}
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2014 Jingwen Owen Ou

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: ./bin/jqplay
93 changes: 93 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# jqplay

https://jqplay.org [![Build Status](https://travis-ci.org/jingweno/jqplay.svg?branch=master)](https://travis-ci.org/jingweno/jqplay) [![OpenCollective](https://opencollective.com/jqplay/backers/badge.svg)](#backers) [![OpenCollective](https://opencollective.com/jqplay/sponsors/badge.svg)](#sponsors)

A playground for [jq](https://github.com/stedolan/jq) made with love by [@jingweno](https://github.com/jingweno), [@lokywin](https://github.com/lokywin) and [@leoping](https://github.com/leoping). Please put it into good use.

## Development

To develop `jqplay`, you need to have a [Go development environment](http://golang.org/doc/install).
You also need to have Node & Postgresql installed.

### bin/setup

This script will setup Postgresql for `jqplay`.

### bin/start

This script will build and start the `jqplay` server.

## Support

### Backers
Love our work and community? [Become a backer](https://opencollective.com/jqplay#backer).

<a href="https://opencollective.com/jqplay/backer/0/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/0/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/1/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/1/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/2/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/2/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/3/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/3/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/4/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/4/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/5/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/5/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/6/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/6/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/7/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/7/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/8/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/8/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/9/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/9/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/10/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/10/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/11/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/11/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/12/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/12/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/13/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/13/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/14/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/14/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/15/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/15/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/16/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/16/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/17/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/17/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/18/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/18/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/19/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/19/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/20/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/20/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/21/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/21/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/22/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/22/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/23/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/23/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/24/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/24/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/25/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/25/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/26/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/26/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/27/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/27/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/28/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/28/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/backer/29/website" target="_blank"><img src="https://opencollective.com/jqplay/backer/29/avatar.svg"></a>

### Sponsors

Use jqplay? Love jqplay? Help [sponsor the project](https://opencollective.com/jqplay#sponsor) and help fill our mugs with coffee.

<a href="https://opencollective.com/jqplay/sponsor/0/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/1/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/2/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/3/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/4/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/5/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/6/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/7/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/8/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/9/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/9/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/10/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/10/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/11/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/11/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/12/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/12/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/13/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/13/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/14/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/14/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/15/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/15/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/16/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/16/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/17/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/17/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/18/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/18/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/19/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/19/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/20/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/20/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/21/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/21/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/22/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/22/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/23/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/23/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/24/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/24/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/25/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/25/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/26/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/26/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/27/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/27/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/28/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/28/avatar.svg"></a>
<a href="https://opencollective.com/jqplay/sponsor/29/website" target="_blank"><img src="https://opencollective.com/jqplay/sponsor/29/avatar.svg"></a>

### License

jqplay is released under the MIT license. See [LICENSE.md](https://github.com/jingweno/jqplay/blob/master/LICENSE.md).
Loading

0 comments on commit 0a7f4cc

Please sign in to comment.