Skip to content

vernu/firebond-be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Developer Assignment

instructions for setting up server

Before proceeding with the setup, ensure that the following prerequisites are met:

  • You have a MongoDB database running locally or on atlas
  • You have Golang installed on your machine

Adding the environment variables

The following environment variables are required to run the server:

  • PORT
  • MONGO_URI - the database connection string
  • DEFAULT_DB - the database name
  • INFURA_KEY - the infura key for interacting with the ethereum blockchain, you can get one from here

Running the server

once all the environment variables are added to .env file, you can run the server by running the following commands:

$ go mod download
$ go run main.go

This will start the server on the port specified in the .env file. You can now make requests to the API using tools like cURL or Postman.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages