Documentation
Here you should find everything you need from getting started with creating your Profile to more advanced topics. We welcome contributions, check out the LinkFree Repo and the documentation source on GitHub for more information.
MongoDB Atlas for Local Development
To work on LinkFree locally, you'll need to set up a database for storing your data. MongoDB Atlas is a fully managed cloud database service that offers a free tier suitable for local development.
Follow the step-by-step instructions below to create your MongoDB Atlas account and set up the connection for LinkFree local development.
Create Your MongoDB Atlas Account
- Go to the MongoDB Atlas website and click on the
Try Free
button. - Fill in your first/last name, email address, and password, and click
Create your Atlas account
. - Check your inbox and click the verification link inside to complete your registration.
Deploy a New Database
- Once you've completed the registration, you will be redirected to a page to deploy your database.
- Choose M0 for the cluster tier. For local development, the M0 free tier is sufficient.
- Choose the provider and region based on your preference. Ideally, choose the region closest to your location.
- Click the
Create
button to deploy the database. Wait for your cluster to deploy. This may take a few minutes.
Set Up the Database User and IP Access List
- Once you've created the database, you will be redirected to the security quickstart pages.
- Fill in the username and password, and then click the
Create User
button to create your first database user. Note: Save your password securely, as MongoDB Atlas doesn't store it. - Click the
Add My Current IP Address
button to add an entry to your IP access list. Only an IP address you add to the IP access list will be able to connect to your database. - Click the
Finish and Close
button.
Set Up the Database Connection
- Once your cluster is ready, click the
Connect
button on your Database Deployments console.
- Click
Drivers
under the Connect to your application section.
- Find the connection string and use this connection string for the variable
LINKFREE_MONGO_CONNECTION_STRING
in your local.env
file.
Remember to replace password in the connection string with the password you set up for your database user.
That's it! You have successfully set up a MongoDB Atlas database and it's now ready for use in your LinkFree local development environment.