Parse Sample Client + Server App
Prerequisites
Server Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js.
Read more Here
-
Prerequisite
- MongoDB should be installed and running
- Create db
test
(this can be changed inconfig.json
)
-
How to run
- from root directory (server)
npm install
npm run server
- Upon successful start you will see
[9346] parse-server running on http://localhost:1338/parse
- NOTE: The above is your API endpoint for all backend operations. Parse also supports a REST API (alternate to JS SDK) Read more
Client
Client application is built with Backbone.js (router support ), jQuery and Webpack for build tool. This can easily be changed to a nodejs Express application or any other framework for that matter.
The Parse Javascript SDK is used for server communication. All CRUD methods are supported but this demo only focusses on Save and Get.
Read more about the SDK Here
-
How to run
- from root directory (client)
npm install
npm run start
- Launch
localhost:3000
in your favorite browser (Hopefully not IE)