Coder Social home page Coder Social logo

0xfernandodias / parse-server-migration Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 12 KB

The repository serves to run the Metrohouse.app server locally at localhost:1337/server

Home Page: http://metrohouse.app

JavaScript 0.60% TypeScript 99.40%
mongodb moralis redis

parse-server-migration's Introduction

parse-server migration

This demo project contains a parse-server backend to migrate from a hosted server on Moralis to a self-hosted server, using parse-server.

Getting started locally

  1. Copy/download this project
  2. Make sure to have yarn or npm insalled
  3. Setup mongo-db and redis locally (see below)
  4. Install all dependencies via yarn install or npm install
  5. Copy .env.example to .env and fill in the values

Run your dapp

  • Run yarn dev to run the server locally

Now your app is running locally on localhost:1337/server (or any other port/endpoint you set in .env)

Note: by default the cloud-code is referenced in build/cloud, so make sure to run yarn build before running the server. Or change the location of the cloud code.

Run mongo-db

In order to run a server instance of parse-server, you will need to setup a mongo-db instance. For more information you can see https://www.mongodb.com/docs/manual/installation/

For local development, you can use the mongo-db-runner (see https://github.com/mongodb-js/runner). This should only be used for local development. To start this run:

yarn dev:db-start

And to stop it, run

yarn dev:db-stop

Make sure to set the DATABASE_URI in your .env file

Run redis

For rate-limiting, we are using a redis instance. In order for this to work, you will need to setup redis instance. For more information you can see https://redis.io/docs/getting-started/

For local development you will need to install redis on your local machine, and start the service. Make sure to set the REDIS_CONNECTION_STRING in your .env file

Remote deployment

AWS Elastic Beanstalk

Follow the steps in the documentation: https://docs.moralis.io/docs/deploy-to-production#aws-elastic-beanstalk

parse-server-migration's People

Contributors

0xfernandodias avatar

Stargazers

Roman avatar

Watchers

 avatar  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.