This is an API written in Go with JWT and MongoDB support to help developers build their own API.
- Make sure you have go1.18+ installed.
- Fork this repository.
- Clone the repository:
git clone [email protected]:your_account/go-api.git - Install the dependencies:
go mod tidy - Configure the
.envfile with your MongoDB remote serverMONGODB_URLURL and database nameDB_NAME.
You can run it using the following command:
go run main.go
This project is configured to debug using vs code, just hit F5 to start the server.