API Router /api with rate limiter middleware
Http Router / with CORS and CSRF middleware
Setup
Copy the example env file over:
cp .env.example .env
Modify the env file you just copied .env with the correct credentials for your database. Make sure the database you entered in DB_NAME has been created.
Run the API:
go run main.go
Your api should be running at http://localhost:4000/ if the port is in use you may modify it in the .env you just created.