To set up the database, all we have to do is the following:
- Add the following lines to the .env file:
To use the .env file in Xcode, you need to adjust the schema to run in your project:
Now, when you run your project in Xcode, it will automatically read the .env file.
You have successfully set up the database for the service. Now, let's work on the routes.