Categorygithub.com/ArxivInsanity/backend-service
module
0.0.0-20230430084832-5bc9d87a9bde
Repository: https://github.com/arxivinsanity/backend-service.git
Documentation: pkg.go.dev

# README

Backend Service

This is the backend service for the Arxiv Insanity application. Application is built using Golang and uses the Gin framework.

To deploy the application:

  1. First provision the GKE cluster using terraform by running the github actions here.
  2. Next run the github actions to deploy the application to GKE using terraform here.

For local setup, use dev containers:

  1. Install Dev containers extension in vscode
  2. Open the root folder using vscode, and select "Reopen code in container"
  3. Create a launch.json file with the below configuration (.vscode/launch.json)
{
    "version": "0.2.0",
    "configurations": [
      {
        "name": "Launch",
        "type": "go",
        "request": "launch", 
        "mode": "debug",
        "host": "127.0.0.1",
        "program": "${workspaceFolder}/src",
        "env": {
            "JWT_SECRET":"REPLACE_ME",
            "OAUTH2_CLIENT_ID" : "REPLACE_ME",
            "OAUTH2_SECRET" : "REPLACE_ME",
            "MONGO_URL" : "REPLACE_ME"
        },
        "args": [], 
        "showLog": true
      }
    ]
}
  1. Press F5 (or click on Run and Debug and click start)
  2. Navigate to localhost to see the swagger UI.
  3. To authenticate with google OAUTH2, navigate here, which will redirect you back to the swagger ui after authenticating

# Packages

No description provided by the author
No description provided by the author