Swift --> Vapor --> Mongo DB --> AWS

Id like to talk with an expert about Mongo DB integration with Swift using Vapor, I have 0 experience into handling back-end except Firebase, that as you know its very easy to implement in Xcode projects, id like to see a sample application such as a Note app that performs simple queries to Mongo DB Atlas, using vapor as middle layer language, but configured starting by zero, step by step UI and backend, maybe a payed video course or something like that, im gonna be the first to buy, im struggling for weeks into finding a similar tutorial about that but found nothing of detailed and clear. I need your help :crying_cat_face:

You need to use this estructure:

mongodb+srv://<user>:<password>@project.5m93ijs.mongodb.net/<databaseName>

you can generate this link in ‘Connect using VS Code’ instead ‘Connect your application’.

The database name can be any name, and it will be created when your program connect to mongo.

Inside of Configure.swift:

try app.databases.use(.mongo(
        connectionString: Environment.get("DATABASE_URL") ?? "mongodb+srv://userOfAtlas : pswOfAtlas@project.3m53ijs.mongodb.net/databaseName"
    ), as: .mongo)