- Server Preparation for Running the project on localhost
- Database Migration
- Registration
- Login
- Token Validation
- Database schema will be created when migrating
- Rollback query is added for making the database empty
- User Signup
- Encode and Decoding the HTTP credentials
- Validating all Credentials
- Phone Number Validation using RegExp
- User Login
- Provide JWT token
- User login validation
- Token will be validet for unauthorized call
- User data will given at response for valid token
.
|-- 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. - Step-2: Run migration command
go run main.go migrate
for Database migration - Step-3: To start server run
go run main.go server