Skip to content

ArxivInsanity/backend-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The backend service for the Arxiv Insanity application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •