Skip to content

Example server using Express and the parse-server module.

Notifications You must be signed in to change notification settings

letnab/parse-server-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parse Server on Managed Azure Services

Your parse server is running at https://<yoursite>.azurewebsites.net/parse.

Your parse dashboard is running at https://<yoursite>.azurewebsites.net/parse-dashboard

  • username: <appId>
  • password: <masterKey>

Developing Remotely

Use Visual Studio Online, a free web app site extension, to modify your deployed site code at https://<yoursite>.scm.azurewebsites.net/dev. You may need to install VSO onto your web app via tools->Visual Studio Online. Filewatching is enabled by default, so any changes that you make to your javascript/configuration files will automatically trigger a site restart to pick up the changes. Be careful if you deploy to the site as your remote changes may be overwritten!

Developing Locally

You can easily interact with the deployed parse server code via git. Clone the web app repository locally with git clone https://<yoursite>.scm.azurewebsites.net/<yoursite>.git. Pushing to the remote repository will automatically trigger a deployment. Be careful not to overwrite changes that you have made remotely with a git deployment!

If you want to setup specific configuration for your app, add it to config.js or local.js. local.js changes will be ignored from git, so it's a good placed to add secrets while developing locally.

Updating Dependencies

If you want to upgrade to a newer version of parse-server, parse-dashboard, or other modules, you can run npm install <package>@<version>. We recommend testing these upgrades on a development instance or locally before modifying your production site. If you want to move to the next major version of parse-server or parse-dashboard you'll need to modify your site package.json, as ^major.minor.patch versioning only allows installing a package of the same major version.

To change the version of node or npm used on the web app, modify the engines property in package.json.

Troubleshooting

Logging specific parse-server configuration:

  • Verbose parse-server logging: verbose: 'true'
  • Database driver logging (very verbose!): add require('mongodb-core/lib/connection/logger')('dummy', { loggerLevel: 'debug' }); before you initialize parse server

To see your logs, check:

Useful tools:

  • F12 developer tools (are the requests to parse server from the dashboard failing?)
  • Postman / Fiddler (execute rest calls against parse server / intercept traffic)
  • node-inspector (debug your app locally or remotely)

Useful Links

About

Example server using Express and the parse-server module.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%