This starter is a minimal setup of Parse Platform (Server & Dashboard) with a choice of three DB configs: PostgreSQL (Postgis), MongoDB or Percona Server MongoDB. All services are run within Docker Compose. Traefik is chosen as a reverse proxy server for its simplicity and great perfomance.
- > git clone https://github.com/kanzitelli/parse-server-starter.git
- > cd parse-server-starter
- > mv example.env .env
- > sh build-up.sh
- Open http://localhost:6969/dashboardand enter credentials from.env(default:adminfor username and12345for password).
Coming soon...
Parse Platform gives us an ability to write and host Cloud Functions on the same server with api and dashboard. You can define new functions in server/cloud/main.js. More information can be found here.
In order to have up-to-date running Cloud Functions (when you add a new one and don't want to rebuild whole Docker image), you just need to restart parse-server container. You can do it by running > sh restart.sh. Or just using Docker extension in VSCode or Docker Desktop app.
Cloud Functions update flow:
- Open server/cloud/main.jsand add simplehello1function:
Parse.Cloud.define('hello1', async req => {
  return 'hello1';
});
- Open terminal and run > sh restart.sh
- Check new function > curl -X POST -H "X-Parse-Application-Id: APP_ID" -H "Content-Type: application/json" http://localhost:6969/parse/functions/hello1