Skip to content

A golang project for practicing design patterns & development best practices. Patterns used: Factory, Decorator, Singleton. Arch: Clean Architecture, Vertical Slice

License

Notifications You must be signed in to change notification settings

sayeed1999/social-connect-golang-api

Repository files navigation

social-connect-golang-api

To run the api locally, follow these steps:-

Create a file scripts/set-env.sh following the example file provided and replace 'xxx' with confidential values:

export API_DATABASE_NAME=social-connect
export API_DATABASE_USER=xxx
export API_DATABASE_PASSWORD=xxx
export API_DATABASE_PORT=5432

export API_REDIS_PORT=6379

export PGADMIN_EMAIL=xxx
export PGADMIN_PASSWORD=xxx

Set necessary environment variables by executing the script:

. scripts/set-env.sh

Get the docker containers up for dependent services e.g postgres, redis, .. by running:

docker compose up -d

Open up terminal from root dir & run:

go run api/main.go

To run all tests in the project, run from root dir:

go test ./...

Additional Documentations

About

A golang project for practicing design patterns & development best practices. Patterns used: Factory, Decorator, Singleton. Arch: Clean Architecture, Vertical Slice

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages