This project is a demo web service, which is supply upload file service with identity verification.
Golang 1.11 and above
go get github.com/weizhe0422/WebServiceWithLoginAndUpload.git
- Already have existing web pages with web services function call
- Use cookie to support Single-Sign-on, you can upload file within 1 minutes without login again
- Support multiple files upload function, and get the last result before next upload request
- Support upload file to server side or AWS S3
- Support upload big file to server side or AWS S3, but less than 100MB
- Use Mongo to save user information
- Support Github OAuth authorizing.
- change disk to project folder
- Download mongo docker image, and type
docker load < /dockerImg/mongodb.tar
to load into. Dock image: https://drive.google.com/file/d/1pMvN7ZtE_A-7VWdu-N1vX7zD6bqxQnKp/view - type
go run main.go
in terminal to launch - use web browser and type
http://localhost:8080
- Input E-Mail and password to log in 5.1 If the E-Mail and password is valid, then you can go through to upload web page