Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 42 lines (30 sloc) 1.08 KB
title permalink
Running the server
/getting-started/running-server.html

Running server

Baker's application server is based on Express with Parse Server, Parse Dashboard and GraphQL endpoints attached. Server script supports 3 modes: standard, watch and debug. In all 3 modes, you will end up with a server running on port 8000 with a few endpoints exposed:

The Parse Dashboard requires authentication with the credentials defined in /settings/development/server.json. Default credentials are:

{
  "user":"admin",
  "pass":"admin"
}

Running server in standard mode

npm run server

Running server in watch mode

In watch mode, the server will automatically restart when you change any javascript file in the server directory:

npm run server:watch

Debugging server

When running in debug mode, you can use Node Inspector to debug server side code:

npm run server:debug