Skip to content

chaninlaw/go-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP server

Quick Start

run following command:

go run cmd/main.go

if Server starting on 8080 then you successfully to run the server.

Setup Database

create an .env file

touch .env
echo -e 'DATABASE_URL=postgresql://username:password@localhost:5432/your_database_name\ADMIN_PASSWORD=12345678' > .env

Seed your database

run following command:

go run cmd/seed/seed.go

Setup Request Header

this repo have middleware for checking the request add this X-API-KEY: Hello world to headers

About

Go with simple HTTP server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages