instagram-api is an api which is capable of creating
users and posts relationally using go and mongodb.
- Create/Get a user
- Create/Get a post
- Get all posts of user
instagram-api uses 2 libraries.
- std lib - The standard go library!
- mongodb driver - The MongoDB supported driver for Go.
Configure mongodb uri in main.go (line:28)
uri := "<mongo_connection_uri>"
To run:
go run .
- user
- id
- name
- password (sha512 hashed)
- post
- id
- caption
- imageUrl
- userId
- timeCreated
- user
- /users/ - GET
- /users/ - POST
- post
- /posts/ - GET
- /posts/ - POST
- /posts/users/<user_id> - GET