https://github.com/vernu/firebond-be
https://github.com/vernu/firebond-be
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vernu/firebond-be
- Owner: vernu
- Created: 2023-06-28T10:25:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-28T13:04:40.000Z (over 2 years ago)
- Last Synced: 2024-12-28T10:52:26.387Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://infura.io/)
## Running the server
once all the environment variables are added to .env file, you can run the server by running the following commands:
```bash
$ 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.