An open API service indexing awesome lists of open source software.

https://github.com/mrinjamul/mrinjamul-auth

A asymmetric JWT based authentication service for user management.
https://github.com/mrinjamul/mrinjamul-auth

Last synced: about 1 year ago
JSON representation

A asymmetric JWT based authentication service for user management.

Awesome Lists containing this project

README

          


logo

mrinjamul auth



A asymmetric JWT based authentication service for user management.


### Requirements

- [Golang](https://golang.org/dl/)
- [Docker](https://docs.docker.com/get-docker/) (Optional but recommended)
- [Postgresql](https://www.postgresql.org/download/) (**Only if you are not using `docker`**)

### Development

To get started, you can clone the repository and run the following commands:

```bash
git clone https://github.com/mrinjamul/mrinjamul-auth.git
```

To install the dependencies, run the following commands:

```bash
cd mrinjamul-auth
go mod download
```

Copy environment variables file and replace the values with your own.

```bash
cp .env.example .env
```

Generate OpenAPI spec:

```bash
swag init --parseDependency --parseInternal
# swag init --parseDependency --parseInternal -g main.go
```

To run the application, run the following commands:

```bash
export $(cat .env | xargs)
go build
./mrinjamul-auth
```

### Contributing

See the [contributing guide](CONTRIBUTING.md) for more information.

### License

- open sourced under the [MIT license](LICENSE)

Copyright (c) 2022 mrinjamul@gmail.com