Since Parse SDK is open source, this project implements a simple server, you can try to build your own parse server.
-
Install Leiningen
You will need Leiningen 2.0 or above installed.
-
Install MongoDB server
After MongoDB server installed, modify profile.clj, ensure :database-url can connect to your server.
To start this server for the application, run:
lein run
-
Clone official parse source code
git clone https://github.com/ParsePlatform/Parse-SDK-iOS-OSX
-
modify Parse/PFConstants.m
Set
kPFParseServer
to your server (for example, @"http://127.0.0.1:3000") -
rebuild
rake package:frameworks
There are 2 archives at build/release directory, unzip one of them.
-
Create a xcode project (iOS/OSX)
Folllow Parse Quick Start, but replace Bolts.framework and Parse.framework for your own.
-
Add example code
You can add examples/UnitTest.m to your project, try and modify to see the server is OK or not.
Currently just support simple PFObject, PFQuery, see examples/UnitTest.m for more details.
Warning: No authority for incoming HTTP connections, be aware of any malicious connections.
See src/clj_parse_server/routes/api.clj
most of important code started from here.
- Click 'Fork' button
- git clone git@github.com:yourname/clj-parse-server.git
- cd clj-parse-server
- git remote add doremi git://github.com/doremi/clj-parse-server.git
- git add & commit
- git push
- Go to your github page
- Click 'Pull Request' button
- Write some comment
- Thanks for your contribute!
Eclipse Public License, Version 1.0 (EPL-1.0)
Copyright © 2015 doremi