
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
github.com/vatsal278/Go-Api-with-Authentication-Mechanism
clone the repo : git clone https://github.com/vatsal278/Go-Api-with-Authentication-Mechanism.git
Pull official mongodb image from docker hub : docker pull mongo
build the docker file : docker build --name Api-image .
Create a new isolated docker network : docker network create api_net
Start a mongo container instance : docker run --network api_net --name mongo-container --publish 9091:27017 -d mongo
Check the ip address of mongo container in my case IP was 172.0.0.2
keep the port number as :27017
as it is default port for mongo db : docker network inspect api_net
*go run -e DBADDRESS=172.0.0.2:27017 main.go
docker run --network api_net --name api-container --e DBADDRESS=172.0.0.2:27017 --publish 9092:8080 Api-image
FAQs
Unknown package
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.