Dating Apps API is an API that can be used for users to access other users' profiles and provide like or pass.
- Go
- PostgreSQL
- Docker (optional)
- Clone project from the repository using http
git clone https://github.com/Alitindrawan24/dating-apps-api.git
- Clone project from the repository if using ssh
git clone git@github.com:Alitindrawan24/dating-apps-api.git
- Create .env file from .env.example file
cp .env.example .env
-
Fill the .env file using your own environment
-
Import the "Dating Apps Api DB.sql" in database/migrations folder or using migrations
-
Install Golang Migrator (for migrate case)
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
- Migrate database (installed golang migrator needed)
make migrate-up
or using migrate command if not have installed make
migrate -database ${DB_MIGRATION_CONNECTION} -path database/migrations up
- Running the application
make run
- If already have air installed, run the application with auto live reload
air
- Using Docker Composer
docker composer up -d