app-platform.mp4
- Learn about the App Platform and its features.
- Select App Platform from the DigitalOcean cloud console in the left sidebar.
- Click the "Create App" button.
- Connect your GitHub repository to the App Platform.
- Once you connect your GitHub repo(s), select the repository you want to deploy. This should be the project you've been working on.
- The branch that is selected should be main and the source directory can stay the default. Leave Autodeploy checked. This will redeploy your site every time you push main to GitHub.
- Add a resource, you will choose Database and click Add.
- Select Attach existing DigitalOcean database.
- Choose your cluster and click Next.
- Add your MongoDB connection string and other environment variables:
Key: MONGODB_URI
Value: your_connection_string_here
- Once deployed, visit the app's public URL to verify it's running correctly.