{"library":"parse-server","title":"Parse Server","description":"Parse Server is a self-hostable, open-source backend for applications, providing a compatible API for the Parse platform SDKs. It enables developers to migrate their applications from the hosted Parse.com service (which was deprecated) to their own infrastructure, offering full control over their data and backend logic. The current stable version is 9.8.0. The project maintains an active development pace with frequent alpha releases for new features and bug fixes, typically leading to stable minor versions every few weeks or months. Key differentiators include its adherence to the Parse API specification, allowing seamless migration, extensive customization via Cloud Code and webhooks, and flexible database support (primarily MongoDB and PostgreSQL). It integrates directly with Express.js, making it easy to embed into existing Node.js applications.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install parse-server"],"cli":{"name":"parse-server","version":null}},"imports":["import { ParseServer } from 'parse-server';","import { ParseGraphQLServer } from 'parse-server/lib/GraphQL/ParseGraphQLServer';","import { Config } from 'parse-server';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import express from 'express';\nimport { ParseServer } from 'parse-server';\nimport path from 'path';\n\nconst app = express();\nconst port = 1337; // Port for your Express app\n\n// Database connection string (e.g., MongoDB, PostgreSQL)\nconst databaseUri = process.env.DATABASE_URI ?? 'mongodb://localhost:27017/dev';\n\n// Initialize Parse Server\nconst parseServerApi = new ParseServer({\n  databaseURI: databaseUri,\n  cloud: path.join(__dirname, 'cloud/main.js'), // Path to your Cloud Code\n  appId: process.env.APP_ID ?? 'myAppId',\n  masterKey: process.env.MASTER_KEY ?? 'myMasterKey',\n  serverURL: process.env.SERVER_URL ?? `http://localhost:${port}/parse`, // Your Parse Server URL\n  liveQuery: {\n    classNames: ['Post', 'Comment'], // Classes to enable for Live Queries\n  },\n  // Ensure publicServerURL matches the client-facing URL for file uploads, etc.\n  publicServerURL: process.env.PUBLIC_SERVER_URL ?? `http://localhost:${port}/parse`,\n  verifyUserEmails: true,\n  emailAdapter: {\n    module: 'parse-server-simple-mailgun-adapter',\n    options: {\n      fromAddress: 'no-reply@example.com',\n      domain: process.env.MAILGUN_DOMAIN ?? 'example.com',\n      apiKey: process.env.MAILGUN_API_KEY ?? 'YOUR_MAILGUN_API_KEY',\n    },\n  },\n});\n\n// Mount the Parse API on the /parse URL prefix\napp.use('/parse', parseServerApi.app);\n\n// Basic Express route\napp.get('/', (req, res) => {\n  res.status(200).send('Parse Server is running.');\n});\n\n// Start the Express server\napp.listen(port, function() {\n  console.log(`Parse Server running on http://localhost:${port}`);\n  console.log('Make sure your database (e.g., MongoDB) is also running!');\n});\n\n// Example Cloud Code (./cloud/main.js):\n/*\nParse.Cloud.define('hello', (request) => {\n  return 'Hello from Cloud Code!';\n});\n*/","lang":"typescript","description":"Sets up a basic Parse Server instance with Express.js, connecting to a MongoDB database, enabling Cloud Code, Live Queries, and a basic email adapter for user verification.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}