Categorygithub.com/Kunal-deve1oper/interview_app_backend
modulepackage
0.0.0-20250108101900-4f236c741f01
Repository: https://github.com/kunal-deve1oper/interview_app_backend.git
Documentation: pkg.go.dev

# README

Go HTTP Server Setup Guide

This document explains how to set up and run the backend for the `interview_app_backend` project.

Repository

Clone the repository from GitHub:

git clone https://github.com/Kunal-deve1oper/interview_app_backend.git

Prerequisites

Make sure you have the following installed on your system:

  • Go (version 1.20 or higher recommended)
  • Git

Steps to Set Up

  1. Navigate to the Project Directory

    cd interview_app_backend
    
  2. Install Dependencies Run the following command to download and install the project's dependencies:

    go mod tidy
    
  3. Set Up Environment Variables Create a .env file in the root directory of the project and add the following variables:

    DB_CONNECTION_STRING=<your-database-connection-string>
    MAIL_SERVICE_EMAIL=<your-mail-service-email>
    MAIL_SERVICE_PASSWORD=<your-mail-service-password>
    

    Replace <your-database-connection-string>, <your-mail-service-email>, and <your-mail-service-password> with your actual credentials.

    Example:

    DB_CONNECTION_STRING=postgres://username:password@localhost:5432/interview_db
    [email protected]
    MAIL_SERVICE_PASSWORD=yourpassword123
    
  4. Build the Server

    go build main.go
    
  5. Run the Server

    ./main.exe
    

    The server will run on http://localhost:8080.

# Packages

No description provided by the author