Skip to content

sajeeshkumar/nutriplan-auth-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Web API

This is a simple Golang web API that has a login API. The login API is very frugal and authenticates from a list of username and passwords passed in via environment variables. It listens on a configurable port and responds with a basic message. This application is intended to be deployed on platforms like Render, but it can be used locally for development and testing.

Table of Contents

Installation

To get started with the Golang Web API, you'll need to have Go 1.18+ installed on your machine.

  1. Clone the repository:
    git clone https://github.com/yourusername/golang-web-api.git
    cd golang-web-api
    
  2. Initialize Go modules
    go mod tidy
    

Running Locally

  1. Set environment variables
    USERS=<username:password comma separated for different ones>
    
  2. Build and run the application
    go run main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages