Giter Club home page Giter Club logo

parse-server's Introduction

๐Ÿ—œ Parse Server Starter

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.

Deployment

Local

  1. > git clone https://github.com/kanzitelli/parse-server-starter.git
  2. > cd parse-server-starter
  3. > mv example.env .env
  4. > sh build-up.sh
  5. Open http://localhost:6969/dashboard and enter credentials from .env (default: admin for username and 12345 for password).

Production

Coming soon...

Read it before use it

Cloud functions

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:

  1. Open server/cloud/main.js and add simple hello1 function:
Parse.Cloud.define('hello1', async req => {
  return 'hello1';
});
  1. Open terminal and run > sh restart.sh
  2. Check new function > curl -X POST -H "X-Parse-Application-Id: APP_ID" -H "Content-Type: application/json" http://localhost:6969/parse/functions/hello1

Todos

  • Production deployment tutorial (w/ https and DO DNS challenge)
  • TypeScript support
  • More options of env variables for Parse configuration
  • Article with more detailed tutorial.
  • Local deployment
  • Percona Server Mongodb support
  • Postgis (Postgres) support
  • Mongodb support (tested on a real project)

parse-server's People

Contributors

kanzitelli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.