- Server Preparation for Running the project on localhost
- Database Migration
- Parcel Create
- Parcel Details
- Parcel Update
- Carrier Request
- Carrier Selection
- Available Parcel List
- Database schema will be created when migrating
- Rollback query is added for making the database empty
- User can create a parcel to send a location
- Validation for required fields
- Parcel details endpoint for user and carrier
- Request parcel details by Parcel ID
- Update parcel status based on the user or carrier action
.
|-- cmd # Contains the commands for the project
|-- images # Contains all image file
|-- internal # Configuration files and Constants
|-- migration # Contains migration files
|-- .env.example # example/structure of .env file
|-- Dockerfile # Used to build docker image.
|-- go.mode # Define's the module's import path used for root directory
|-- go.sum # Contains the expected cryptographic checksums of the content of specific module versions
|-- Makefile # Makefile to run commands after docker up
|-- readme.md # Explains project installation and other informations
- Golang
- PostgreSQL
- Step-1: Copy/rename
.env.example
file as.env
. Change theAPP_PORT
,DB_PORT
,DB_NAME
,DB_HOST
,DB_USER
,DB_PASSWORD
value as per your DB and Project setup. Copy command fromMakefile
- Step-2: Run migration command
make migrate
for Database migration - Step-3: To start server run
make server