Skip to main content

Command Palette

Search for a command to run...

Activity 18: Fork testdeploy Github Repository and deploy it to Render.com

Published
3 min readView as Markdown

Step 1: Fork the GitHub Repository

  1. Visit the Repository

  2. Fork the Repository

    • Click the Fork button in the upper-right corner of the repository page to make a copy of the repository in your own GitHub account.

Step 2: Set Up Your Render Account

  1. Visit Render.com

    • Open Render in your browser.
  2. Sign Up or Log In

    • If you don’t have an account, create a new one, or log in to your existing Render account.

Step 3: Create a New Web Service on Render

  1. Create a New Service

    • In your Render dashboard, click the New button and choose Web Service from the dropdown menu.

  1. Connect GitHub

    • When asked, link your GitHub account to Render by allowing Render to access your repositories.

Select Your Forked Repository

  • Select the forked repository from your GitHub account (e.g., yourusername/test_deploy).

  1. Specify the Basic Settings

    • Name: Enter a name for your service (e.g., test-deploy-service).

    • Branch: Select the main branch or any branch you want to deploy from.

    • Build Command: Leave this blank unless your repository requires a specific build command.

    • Start Command: Enter the command to launch your application, like npm start or node server.js, depending on your app.

    • Environment: Select the correct runtime environment (e.g., Node.js, Python, etc.).

  2. Create the Service

    • Click on Deploy Web Service to begin deploying your app.

Step 4: Test the API with Postman

  1. Open Postman

    • Start Postman on your computer or use the web version.
  2. Create a New Request

    • Choose the correct HTTP method (GET, POST, etc.) for the API function you want to test.
  3. Enter the URL

  1. Set Up the Request

    • If your API requires authentication, include the necessary headers.

    • For POST requests, navigate to Body, select raw, then choose JSON format. Input the data your API needs.

  2. Send the Request

    • Click Send and check the response.

    • If your API is configured correctly, you should see the expected output.


Common API Endpoints

  • GET All Students:
    Use a GET request to retrieve a list of all students.

  • GET Student by ID:
    Use a GET request with the student’s ID in the URL to fetch details of a specific student.

  • ADD a New Student:
    Use a POST request with the student data in the request body (in JSON format).

  • UPDATE a Student:
    Use a PUT request with the updated student data.

  • DELETE a Student:
    Use a DELETE request to remove a student by ID.

https://roncal-basic-crud-python-flask.onrender.com/students

More from this blog

Jov's Blog

48 posts