Database
OneDay.Build
supports MangoDB. If you want to quickly set up the platform without being troubled by configuring the database environment locally, we recommend using MangoDB Atlas, which is a fully managed database service provided by MongoDB. It allows users to easily deploy, manage, and scale MongoDB databases in the cloud, saving you the trouble of setting up a database environment locally.
We plan to add support for Supabase in future versions.
Register for MongoDB Atlas
Please click here to go to the MangoDB Atlas official website , and then click the "Try Free" button in the top right corner of the page to register.
Create a Database
In the Atlas dashboard, go to the Database page under Deployment in the left menu, and click the Create button on the right to create a database.
If you are doing preliminary testing and do not have high requirements for database storage and performance, we recommend selecting "Shared" when creating the database, as this will give you a free shared version of the database.
Get Data Source from Atlas
Preparation
Preparation for MongoDB Atlas Data Source
Open the .env
file and fill in the URL obtained from MongoDB in the DATABASE_URL
section, after the equal sign. Note that there should be quotes here. For example, replace username
and password
with your own.
# ===============================================================
# MangoDB: https://oneday.build/docs/features/database
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DATABASE_URL= "mongodb+srv://username:password@cluster0.2l84yzn.mongodb.net/test"