• Stars
    star
    475
  • Rank 92,465 (Top 2 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 9 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Provide docker images and docker stack for parse-server npm versions and latest commit

Docker โค Parse

Docker Pulls Docker Stars Docker Tag License Travis CI Gitter Chat

โ˜๏ธ One-Click Deploy

Deploy Deploy to Azure Deploy to AWS Deploy to Scalingo Deploy to Docker Cloud

โญ Features

  • Parse Server with MongoDB
  • Parse Cloud Code via git with auto rebuild
  • Parse Push Notification : iOS, Android
  • Parse Live Query
  • Parse Dashboard
  • Tested Docker Image
  • Deploy with Docker
  • Deploy with Docker Compose
  • Deploy with one click
  • GraphQL support GRAPHQL_SUPPORT=true, GRAPHQL_SCHEMA=YOUR_SCHEMA_URL (default to ./cloud/graphql/schema.js)

๐Ÿ“บ Overview

Parse Server Diagram

๐Ÿ™ˆ Sneak Preview

Screencast

๐Ÿš€ Deployments

Note

๐Ÿ“Ž Deploy with Docker

$ docker run -d -p 27017:27017 --name mongo mongo

$ docker run -d                                \
             -e APP_ID=${APP_ID}         \
             -e MASTER_KEY=${MASTER_KEY} \
             -p 1337:1337                      \
             --link mongo                      \
             --name parse-server               \
             yongjhih/parse-server

$ docker run -d                                \
             -p 2022:22                        \
             --volumes-from parse-server       \
             --name parse-cloud-code-git       \
             yongjhih/parse-server:git

# Test parse-server
$ curl -X POST \
  -H "X-Parse-Application-Id: {appId}" \
  -H "Content-Type: application/json" \
  -d '{}' \
  http://localhost:1337/parse/functions/hello

$ docker run -d \
             -e APP_ID=${APP_ID}         \
             -e MASTER_KEY=${MASTER_KEY} \
             -e SERVER_URL=http://localhost:1337/parse \
             -p 4040:4040                      \
             --link parse-server               \
             --name parse-dashboard            \
             yongjhih/parse-dashboard

# The above command will asuume you will later create a ssh 
# and log into the dashboard remotely in production. 
#  However, to see the dashboard instanly using either
#  localhost:4040 or someip:4040(if hosted somewhere remotely)
# then you need to add extra option to allowInsecureHTTP like
# It is also required that you create username and password 
# before accessing the portal else you cant get in

$  docker run -d \
        -e PARSE_DASHBOARD_CONFIG='{"apps":[{"appId":"<appid>","serverURL":"http://localhost:1337/parse","masterKey":"<masterkey>","appName":"<appname>"}],"users":[{"user":"<username>","pass":"<password>"}]}' \
        -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1  \
        -p 4040:4040                      \
        --link parse-server               \
        --name parse-dashboard            \
        yongjhih/parse-dashboard

๐Ÿ“Ž Deploy with Docker Compose

$ wget https://github.com/yongjhih/docker-parse-server/raw/master/docker-compose.yml
$ APP_ID=YOUR_APP_ID MASTER_KEY=YOUR_MASTER_KEY PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 SERVER_URL=http://localhost:1337/parse docker-compose up -d

Note

  • We use PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 to allow insecure via development environment.
  • $ wget https://github.com/yongjhih/docker-parse-server/raw/master/docker-compose.yml -O - | APP_ID=YOUR_APP_ID MASTER_KEY=YOUR_MASTER_KEY docker-compose up -d -f - # not supported for docker-compose container

๐Ÿ“Ž Deploy to Cloud Services

โšก Advance topics

๐Ÿ”ฅ Server Side Developments

How to push cloud code to server
Screencast - git

# This command wil create a SSH keys for you as
#  ~/.ssh/id_rsa.pub and another private key.
# you can leave the options balnk by pressing enter.

$ ssh-keygen -t rsa

# If git container name is `parse-cloud-code-git`
$ docker exec -i parse-cloud-code-git ssh-add-key < ~/.ssh/id_rsa.pub

# port 2022, repo path is `/parse-cloud-code`
$ git clone ssh://git@localhost:2022/parse-cloud-code
$ cd parse-cloud-code
$ echo "Parse.Cloud.define('hello', function(req, res) { res.success('Hi, git'); });" > main.js
$ git add main.js && git commit -m 'Update main.js'
$ git push origin master

$ curl -X POST \
  -H "X-Parse-Application-Id: ${APP_ID}" \
  -H "Content-Type: application/json" \
  -d '{}' \
  http://localhost:1337/parse/functions/hello

๐Ÿ“ฑ Client Side Developments

You can use the REST API, the JavaScript SDK, and any of our open-source SDKs:

๐Ÿ“Ž curl example

curl -X POST \
  -H "X-Parse-Application-Id: YOUR_APP_ID" \
  -H "Content-Type: application/json" \
  -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \
  http://localhost:1337/parse/classes/GameScore

curl -X POST \
  -H "X-Parse-Application-Id: YOUR_APP_ID" \
  -H "Content-Type: application/json" \
  -d '{}' \
  http://localhost:1337/parse/functions/hello

curl -H "X-Parse-Application-Id: YOUR_APP_ID" \
     -H "X-Parse-Master-Key: YOUR_MASTER_KEY" \
     -H "Content-Type: application/json" \
     http://localhost:1337/parse/serverInfo

๐Ÿ“Ž JavaScript example

Parse.initialize('YOUR_APP_ID','unused');
Parse.serverURL = 'https://whatever.herokuapp.com';
var obj = new Parse.Object('GameScore');
obj.set('score',1337);
obj.save().then(function(obj) {
  console.log(obj.toJSON());
  var query = new Parse.Query('GameScore');
  query.get(obj.id).then(function(objAgain) {
    console.log(objAgain.toJSON());
  }, function(err) {console.log(err); });
}, function(err) { console.log(err); });

๐Ÿ“Ž Android example

//in your application class

Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
        .applicationId("YOUR_APP_ID")
        .clientKey("YOUR_CLIENT_ID")
        .server("http://YOUR_SERVER_URL/parse/")   // '/' important after 'parse'
        .build());

  ParseObject testObject = new ParseObject("TestObject");
  testObject.put("foo", "bar");
  testObject.saveInBackground();

๐Ÿ“Ž iOS example

class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool {
        let configuration = ParseClientConfiguration {
            $0.applicationId = "YOUR_APP_ID"
            $0.clientKey = "YOUR_CLIENT_ID"
            $0.server = "http://YOUR_SERVER_URL/parse"
        }
        Parse.initializeWithConfiguration(configuration)
    }
}

๐Ÿ“Ž GraphQL

Run with GraphQL support.

GRAPHQL_SUPPORT=true APP_ID=YOUR_APP_ID MASTER_KEY=YOUR_MASTER_KEY SERVER_URL=http://localhost:1337/parse docker-compose up -d

Make sure ./cloud/graphql/schema.js is pushed to cloud code.
Then navigate to http://localhost:1337/graphql?query=%7B%0A%20%20hello%0A%7D%0A

๐Ÿ‘€ See Also

๐Ÿ‘ Contributors & Credits

didierfranc ArnaudValensi gerhardsletten acinader kandelvijaya vitaminwater cleever katopz

More Repositories

1

android-proguards

AAR proguards
Java
762
star
2

android-gitbook

Open Android
CSS
207
star
3

RetroFacebook

Retrofit Facebook Android SDK
Java
192
star
4

proguard-annotations

proguard-annotations AAR
Java
172
star
5

RxParse

Reactive Parse
Java
140
star
6

kotlin-extensions

kotlin-android-extensions
Kotlin
127
star
7

mocker

Fluent mockito
Java
97
star
8

awesome-android-awesomeness

A curated list of android awesomeness
84
star
9

SwitchPreferenceCompat

SwitchPreferenceCompat from https://plus.google.com/+ChristianGollner/posts/badausxo1J6
Java
43
star
10

mismeter

A Simple Meter View for Android
Java
39
star
11

RxBolts

Reactive Bolts-Android Framework
Java
32
star
12

rxfirebase

RxJava2 and Kotlin for Firebase
Java
30
star
13

AutoJson

AutoLoganSquare = AutoValue + LoganSquare
Java
29
star
14

pepk

PEPK - Play Encrypt Private Key - Imported from pepk-src.jar
Java
29
star
15

CardView

CardView v7 for eclipse
Java
27
star
16

RecyclerList

Easy to use RecyclerView
Java
27
star
17

depth

Depth Menu for Android: REDIRECT to
27
star
18

dagger2-sample

CoffeeMaker Sample
Java
27
star
19

auto-parse

AutoValue for ParseObject
Java
26
star
20

RxMediaStore

RxMediaStore
Java
26
star
21

AutoCursor

AutoCursor
Java
25
star
22

squery

8Query - Query Builder
Java
24
star
23

JavaPoetic

JavaPoet Simple Builder
Java
23
star
24

docker-android-studio

Shell
21
star
25

drupalfit

A drupal services rest client with retrofit for android
Java
21
star
26

RxFacebook

Facebook in RxJava
Java
19
star
27

rx-mqtt

Java
18
star
28

rx-receiver

RxJava1/2 for Android BroadcastReceiver
Java
16
star
29

android-gradle-plugin

Import from aosp https://android.googlesource.com/platform/tools/base
Java
15
star
30

rc

rcfiles/dotfiles
Perl
13
star
31

flutter_childed

Avoid Widget Hell
Dart
6
star
32

parse-cloud-code

Allow signInWithTwitch for Parse Cloud Code
JavaScript
6
star
33

docker-android

Dockerfile
6
star
34

docker-alpine-android

6
star
35

parse-android-sdk

parse.com android-sdk
Shell
6
star
36

RxList

Reactive List
Java
5
star
37

rxtasks

RxTasks for GMS
Java
5
star
38

flutter_aws

Amazon Pinpoint SDK for flutter
Kotlin
5
star
39

converter-logansquare-retrofit

Converter LoganSquare for retrofit
Java
4
star
40

rx-net

Reactive network for Android
Java
4
star
41

retrofit2.bak

Retrofit2 turns your REST API into a Java interface
Java
4
star
42

HealingBrush

git clone https://android.googlesource.com/platform/frameworks/rs.git
Java
4
star
43

discord-tts-bot

discord tts bot
Python
4
star
44

simple-parse

No more put("key", value)
Java
3
star
45

parse-android-sdk.m2

From https://github.com/8tory/parse-android-sdk
3
star
46

attrs-view

Java
3
star
47

RxJava-Operators

Java
3
star
48

rxjava2-sample

2
star
49

flutter_play_licensing

For flutter, https://github.com/google/play-licensing
Kotlin
2
star
50

ActiveAndroid-Preference

Allow Preference using ActiveAndroid ORM to persist settings
Java
2
star
51

aws-ktx

Kotlin
2
star
52

fh2py

Battlefild2 FH2 python
Python
2
star
53

aoe2-aoc-1.0c-scenario

=_=|||ๅ กไป”
2
star
54

routs

Simple Router with Prefix Tree
Java
2
star
55

RxJava2RxJava2

2
star
56

kotlin-system-services

[Deprecated]
Kotlin
2
star
57

mender-python

Mender SDK for python
Python
2
star
58

RxJava-retrofit-github-sample

Sample for https://speakerdeck.com/jakewharton/2014-1
Java
2
star
59

android-ui-example

markushi/android-ui example
Java
2
star
60

docker-mosquitto

Shell
1
star
61

docker-dex2jar

Shell
1
star
62

resources

1
star
63

gradle-java-test-boilerplate

Java
1
star
64

rx-facebook-sdk.js

rxjs for facebook sdk
JavaScript
1
star
65

retromqtt

1
star
66

docker-elasticsearch-logstash-kibana

docker-ELK
1
star
67

facebook-content-provider

FacebookContentProvider supports picture
Java
1
star
68

lolrtmpsclient

Automatically exported from code.google.com/p/lolrtmpsclient
Java
1
star
69

android-system-services

Easy to retrieve system service
Java
1
star
70

docker-webdis

Shell
1
star
71

flutter_embrace

Dart
1
star
72

bf2py

Battlefild2 python
Python
1
star
73

RetroFirebase

1
star
74

android-sdk-maven

mirror android sdk local maven
1
star
75

docker-aosp

Provides AOSP build environment
Shell
1
star
76

android-facebook-stickers

1
star
77

rx-websocket.js

JavaScript
1
star
78

assertj-rxjava2

TODO
1
star
79

parse-facebook-v3

Parse Facebook Android SDK
Shell
1
star
80

flutter_ext

A set of Dart extensions for Flutter development
Dart
1
star
81

bloctog

1
star
82

docker-logstash-webdis

ELKRW
1
star
83

android-gradle-plugin.m2

maven repo for https://github.com/yongjhih/android-gradle-plugin
1
star
84

rx-telephony

Java
1
star
85

rx-twitch.js

JavaScript
1
star
86

screenshot-tests-for-android-boilerplate

Kotlin
1
star
87

open-webook

1
star
88

docker-alpine-openjdk

1
star
89

RxJava-GroupByTest

Java
1
star
90

streamsupport-snapshot

Backport of Java 8 java.util.stream API to Java 6/7 and Android [Deprecated]
Java
1
star
91

ParseCompat

Compatable Parse
Java
1
star
92

gwtwiki

git-svn http://gwtwiki.googlecode.com/svn/
Java
1
star
93

RxAutoParcel

1
star
94

mender-material

JavaScript
1
star
95

docker-flutter

Dockerfile
1
star
96

android-material-arsenal

1
star
97

gradle-init.rxjava

Java
1
star
98

simple-processor

1
star
99

docker-gradle

Install gradle wrapper by docker container
Shell
1
star
100

android-i18n-plurals

Java
1
star