PostgreSQL Project
Introduction
By creating our database at Render.com, it will make the interactions between the web application and database faster and easier to work with. A simple rule to remember is "Put your database as close to the application server as possible." By both existing in the same server space, it should prove fast and reliable.
Video Overview
The video provides a general overview of the activity, but does not contain the detail needed to complete each process. Watch the video to obtain a general idea, but follow the written steps to complete the activity. This is the Transcript of the video.
Create the Service
- Navigate in a browser tab to Render.com if you're not already there.
- Login (if needed) by clicking the "Login" button in the top-right corner.
- Click the "GitHub" option and provide your GitHub credentials as needed.
- You should arrive at the Dashboard.
- Click the "New" button in the top-right corner.
- Highlight and click the "PostgreSQL" option.
- The "New PostgreSQL" dialog will open.
- Do the following:
- Provide a name for the project (e.g. cse340 Database)
- Provide a name for the database (e.g. cse340). If the generic name is not allowed, add your initials to the end (e.g. cse340br)
- Provide a user (this is the username). Make the username and the database name identical (easier to remember that way).
- Click the Region dropdown. Select the option closest to you geographically.
- Accept the default the PostgreSQL Version.
- Leave the Datadog API Key input empty.
- The "Free" instance type should be selected. Don't change this! Note: The free database will be deleted in 90 days. You will have to rebuild your database once expired, so make sure you save your scripts from this week to make that easier!
- Click the "Create Database" button.
- You will return to the Dashboard and the project will be shown, but will take a few minutes before it is completed.
The Dashboard
When the PostgreSQL service is complete, the status in the dashboard will change to "Available":
The last column "Last Deployed" will indicate how long the service has been active. Remember, the free version only lasts 90 days. It will be deleted at that time and will have to be rebuilt.
Conclusion
With the database service created, let's get some tools to use to work with it. We'll start that in the next activity.