I’m a newbie working on a project and trying to use a basic database on a small personal webdev project. I want to include a database and am looking at the documentation for FaunaDB. My project currently uses node.js, express and MongoDB/mongoose. I would use MongoDB on Netlify but it seems like, because you can’t whitelist individual IP addresses between Netlify and Atlas/MongoDB, FaunaDB is the more secure choice - is that right? I’m not sure how to set that up on FaunaDB since most of the documentation uses react. For example, the section of my server.js file where I call in the MongoDB database looks like this:
> // configuration ===============================================================
> mongoose.Promise = global.Promise;
> const dotenv = require('dotenv').config()
>
> // Initialize connection to database
> const dbUrl = process.env.DB_URL,
> dbOptions = {
> useNewUrlParser: true,
> useFindAndModify: false
> }
> mongoose.connect(dbUrl, dbOptions);
Can anyone point me toward resources for how to set up a basic FaunaDB? I don’t know how much reconfiguring this will take.
PS I hope this was the right section to post this in - please feel free to move if not. Thanks!