This is an example application that demonstrates how to run Parse Server on Clever Cloud with PostgreSQL, Redis and S3 (Cellar).
Parse Server is an open-source Backend-as-a-Service (BaaS) framework. This example deploys it on Clever Cloud using:
- PostgreSQL for data persistence
- Redis for caching
- Cellar (S3-compatible) for file storage
/parse- Parse Server API endpoint
- Parse Server 9 - Open-source BaaS framework
- Express.js 5 - Web framework for Node.js
- Parse JS SDK 8 - JavaScript SDK for Parse
- @parse/s3-files-adapter - S3 file storage adapter
- Node.js 24+
- PostgreSQL
- Redis
- Node.js 24+
- npm
npm install
npm startThe application will be accessible at http://localhost:1337/parse.
The application requires running PostgreSQL and Redis instances. Set the following environment variables:
POSTGRESQL_ADDON_URI- PostgreSQL connection stringREDIS_URL- Redis connection stringCELLAR_BUCKET,CELLAR_ADDON_KEY_ID,CELLAR_ADDON_KEY_SECRET,CELLAR_ADDON_HOST- S3/Cellar configurationPARSE_APP_ID,MASTER_KEY,JAVASCRIPT_KEY,SERVER_URL,APP_NAME- Parse Server configuration
Once the server is running, you can create an object using the Parse REST API:
curl -X POST \
-H "X-Parse-Application-Id: YOUR_APP_ID" \
-H "X-Parse-JavaScript-Key: YOUR_JS_KEY" \
-H "Content-Type: application/json" \
-d '{"room":101,"guests":2,"nights":4}' \
https://yourdomain.cleverapps.io/parse/classes/BookingUse
X-Parse-JavaScript-Keyfor client requests. The master key is restricted to localhost (server-side cloud code only).
You have two options to deploy your application on Clever Cloud: using the Web Console or using the Clever Tools CLI.
If you don't already have an account, go to the Clever Cloud console and follow the registration instructions.
- Log in to the Clever Cloud console
- Click on "Create" and select "An application"
- Choose "Node.js" as the runtime environment
- Configure your application settings (name, region, etc.)
- In your application's dashboard, go to "Service dependencies"
- Click "Link add-ons" and add:
- PostgreSQL - Choose the plan that fits your needs
- Redis - Choose the plan that fits your needs
- Cellar - S3-compatible object storage for file uploads
- Link all add-ons to your application
The POSTGRESQL_ADDON_URI, REDIS_URL, and Cellar environment variables will be automatically set.
In your application's environment variables, set:
PARSE_APP_ID- Your Parse application IDMASTER_KEY- Your Parse master keyJAVASCRIPT_KEY- Your Parse JavaScript keySERVER_URL- Your Parse server URL (e.g.,https://yourdomain.cleverapps.io/parse)APP_NAME- Your application name
You can deploy your application using Git:
# Add Clever Cloud as a remote repository
git remote add clever git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/app_<your-app-id>.git
# Push your code to deploy
git push clever masterInstall the Clever Tools CLI following the official documentation:
# Using npm
npm install -g clever-tools
# Or using Homebrew (macOS)
brew install clever-toolsclever login# Initialize the current directory as a Clever Cloud application
clever create --type node <YOUR_APP_NAME>
# Add a PostgreSQL add-on
clever addon create postgresql-addon <YOUR_PG_ADDON_NAME> --link <YOUR_APP_NAME> --plan xs_sml
# Add a Redis add-on
clever addon create redis-addon <YOUR_REDIS_ADDON_NAME> --link <YOUR_APP_NAME>
# Add a Cellar add-on for file storage
clever addon create cellar-addon <YOUR_CELLAR_ADDON_NAME> --link <YOUR_APP_NAME># Get the application domain (strip surrounding whitespace from clever domain output)
clever env set CELLAR_BUCKET yourBucket
clever env set PARSE_APP_ID yourParseAppId
clever env set SERVER_URL "https://$(clever domain | xargs)/parse"
clever env set MASTER_KEY yourMasterKey
clever env set JAVASCRIPT_KEY yourJSKey
clever env set APP_NAME yourAppNameclever deployOnce deployed, you can access your application at the URL provided by Clever Cloud.
clever openOnce deployed, you can monitor your application through:
- Web Console: The Clever Cloud console provides logs, metrics, and other tools to help you manage your application.
- CLI: Use
clever logsto view application logs andclever statusto check the status of your application.