I only need to use Parse sever cloud functions, How can I run parse server without mongodB
-
2You 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.Davi Macêdo– Davi Macêdo2019-07-24 16:46:15 +00:00Commented Jul 24, 2019 at 16:46
Add a comment
|
1 Answer
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 😊
3 Comments
Lei Sen
hey I mean I dont need a DB, I only like Cloud funtion of it.. I dont need any DB
Julien Kode
@LeiSen I totally understand, but it’s not possible ... You can simply use express, I had the same issue and use express
Julien Kode
@LeiSen you cannot run a Parse Server instance without a database as Parse store stuff like login session into the database...