https://github.com/oshosanya/sman-api
SMAN ID card generator
https://github.com/oshosanya/sman-api
Last synced: 5 months ago
JSON representation
SMAN ID card generator
- Host: GitHub
- URL: https://github.com/oshosanya/sman-api
- Owner: oshosanya
- Created: 2021-01-14T12:25:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-14T12:38:16.000Z (almost 5 years ago)
- Last Synced: 2024-12-30T02:51:49.966Z (about 1 year ago)
- Language: Go
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# SMAN API
You need to have go installed to run this project as it is written in go, and there are no binaries on this repo.
To run the project, simply run `go run main.go` in the project directory.
An HTTP Server is started on port 1323
Make a post request to the server using form-data with the following items
```aidl
name: string
position: string
branch: string
id_number: string
passport: file
```
A file is generated and stored on a s3 bucket (Do not forget to create a .env file with your s3 bucket credentials), and the url of the file is sent in the response.
Feel free to modify the project and store the file instead on your local machine.
Disclaimer: This project is not beautiful, has poor error handling and will probably make you puke.
Read the source code at your own discretion. Thanks for understanding.