0

I only need to use Parse sever cloud functions, How can I run parse server without mongodB

1
  • 2
    You need to connect to some database (mongo or postgres) anyways. There are some data, like the application schema, users, that even features like Cloud Code depend on. If you just need to create an endpoint, it might be better to do it directly in an Express.js application, instead of using Parse. Commented Jul 24, 2019 at 16:46

1 Answer 1

2

How to use Parse server without MongoDb ?

You cannot run a Parse Server instance without a database. For example, Parse store login session into the database

Two databases available with Parse Server

According to the documentation you have two choices of databases:

So if you do not want to use MongoDb you have to use Postgres

Here is the difference between theses two databases

How to switch databases ?

If you want to change your database from a MongoDb to a Postgres, you just have to change the configuration:

var api = new ParseServer({
  databaseURI: 'postgres://my.awesome.postgres.uri',
});

Hope my answer help you 😊

Sign up to request clarification or add additional context in comments.

3 Comments

hey I mean I dont need a DB, I only like Cloud funtion of it.. I dont need any DB
@LeiSen I totally understand, but it’s not possible ... You can simply use express, I had the same issue and use express
@LeiSen you cannot run a Parse Server instance without a database as Parse store stuff like login session into the database...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.