Backend in Go for Van Rakshak App
- mysql - for storing related data
- go - for running backend server
- redis - for storing auth tokens
- postman - for testing the APIs
- Any editor (VS code is prefferred)
- After cloning this repo, change mysql credentails in repo.go and redis credentials in redis.go
- Create db gir_rakshak in mysql
- Import gir_rakshak.sql file in gir_rakshak schema
- Import postman collection
- Run command
go run main.go
- Open postman collections and start with
User - Login
, which will give an access_token (at) and user_id (uid) - For all other authorised APIs, send this combo in headers