Skip to content

jhnlynn/go-play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Play

A demo with features of: MongoDB and AWS S3

Operations before you can play with this demo

Create your AWS account, AWS S3 bucket, and change all the keys sets in .env file.

Create your MongoDB account, create a DB called my_blogs, and a collection in it called blogs, copy connection URI to the file ./consts/dumTest.go

Test: Better first write something to your collection: POST localhost:4000/post-blog in body

{ "views": 0, "cover":"oo", "title": "dsds", "content":"dd" } Test Your Upload POST localhost:4000/upload choose multi-part choose file and choose an image

You might need to change line 128 in ./awsOp/awsOp.go to your bucket returning link

have fun!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages