A simple money transfer REST API.
- Language: Go
- Framework: GorillaMux
- Database: PostgreSQL (Version: 15.0)
- Additional Technologies: JSON Web Tokens (JWTs)
- Architecture: Model-View-Controller (MVC)
- The server does not use HTTPS
- The default port (specified in main) is 8001
- All endpoints except "/" will return application/json
- Create a PostgreSQL instance at any port (this project uses 4323)
- A shell script
setup.shwas provided and can be found in the database directory. Change the port number to your instance and run it. The shell file will create a database named "development", the tables, and populates it with sample data.- Note: this shell script uses zsh, if you use bash, modify the binary.
You may use go run main.go (assuming you are inside ./rest-api directory).
Alternatively, another shell script was provided that compiles the program into an executable and immediately runs if successful.
Note: navigate into ./rest-api/pkg/models/database.go and change your connection string if you are using a different port or database name.
You may find the endpoint documentations at:
Payaco API Documentation (Postman)