New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/amc-hawk/instagram-backend-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/amc-hawk/instagram-backend-api

  • v0.0.0-20211009150837-97e451eed521
  • Source
  • Go
  • Socket score

Version published
Created
Source

Instagram-Backend-API

This is the task done for Appointy

Tasks Done here :

	Create an User
			Should be a POST request
			Use JSON request body	
			URL should be ‘/users'
			
	Get a user using id
			Should be a GET request
			Id should be in the url parameter
			URL should be ‘/users/<id here>’
			

I used Go for the very first time, i have used other backend languages earlier but this one was quite different. Documentation provided on the internet is very easy to grasp and move forward with your project. I

Basic Setup :

	go get github.com/mongodb/mongo-go-driver

Connection of Go with MongoDb :

clientOptions := options.Client().ApplyURI("mongodb://localhost:27017")
fmt.Println("ClientOptopm TYPE:", reflect.TypeOf(clientOptions), "\n")
client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil {
	fmt.Println("Mongo.connect() ERROR: ", err)
	os.Exit(1)
}
ctx, _ := context.WithTimeout(context.Background(), 15*time.Second)

I will work upon this project further and will update the Repo in future.

FAQs

Package last updated on 09 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc