Skip to content

golang web server that generates and downloads students OPEI certificates

Notifications You must be signed in to change notification settings

pet-informatica/opei-certificate-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

opei-certificates-server

golang web server that generates and downloads students OPEI certificates

Getting Started

This project runs in go 1.10.x (install on ubuntu).

Installing

At the project root folder, run the following:

go get github.com/jung-kurt/gofpdf
go get github.com/mattn/go-sqlite3
go build

Running

Copy the opei.db file into to the project root folder.

./opei-certificate-server

Testing

After starting the web server, it will respond to:

  • POST requests
curl -H "Content-type: application/json" -X POST -d '{"cpf":"<insert CPF here>"}' http://localhost:8080/
  • GET requests

    At your browser, access: http://localhost:8080/?cpf=<insert CPF here>

Both methods will serve the OPEI certificate with name following

About

golang web server that generates and downloads students OPEI certificates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages