{"id":23046888,"url":"https://github.com/chinmayvivek/secure-sign","last_synced_at":"2026-05-20T05:35:53.258Z","repository":{"id":220761589,"uuid":"752525770","full_name":"CHINMAYVIVEK/secure-sign","owner":"CHINMAYVIVEK","description":"Simple Login Registration and get user  REST API using Golang and Postgresql","archived":false,"fork":false,"pushed_at":"2024-02-10T08:10:49.000Z","size":158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T16:46:15.842Z","etag":null,"topics":["golang","golang-rest-api","login","login-api","postgresql","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CHINMAYVIVEK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-04T05:04:11.000Z","updated_at":"2024-02-04T05:14:15.000Z","dependencies_parsed_at":"2024-02-10T09:22:19.641Z","dependency_job_id":"ce18cb35-3c5f-422e-9955-a40f9ee99705","html_url":"https://github.com/CHINMAYVIVEK/secure-sign","commit_stats":null,"previous_names":["chinmayvivek/secure-sign"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHINMAYVIVEK%2Fsecure-sign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHINMAYVIVEK%2Fsecure-sign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHINMAYVIVEK%2Fsecure-sign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHINMAYVIVEK%2Fsecure-sign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CHINMAYVIVEK","download_url":"https://codeload.github.com/CHINMAYVIVEK/secure-sign/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927809,"owners_count":20856193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","golang-rest-api","login","login-api","postgresql","rest-api"],"created_at":"2024-12-15T22:29:55.523Z","updated_at":"2026-05-20T05:35:48.235Z","avatar_url":"https://github.com/CHINMAYVIVEK.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Secure Sign\n\nSecure Sign is a Golang-based authentication service that facilitates user registration, login, and retrieval of user details. The project includes REST API endpoints for seamless integration into your applications.\n\n## Table of Contents\n\n- [Secure Sign](#secure-sign)\n  - [Table of Contents](#table-of-contents)\n  - [Getting Started](#getting-started)\n    - [Prerequisites](#prerequisites)\n    - [Installation](#installation)\n  - [Usage](#usage)\n    - [API Endpoints](#api-endpoints)\n    - [Docker Deployment](#docker-deployment)\n  - [Project Structure](#project-structure)\n    - [Profiling :](#profiling-)\n\n## Getting Started\n\n### Prerequisites\n\nBefore you start, ensure you have the following installed on your system:\n\n- [Go](https://golang.org/doc/install)\n- [Docker](https://docs.docker.com/get-docker/)\n- [Postgresql](https://www.postgresql.org/)\n  \n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/CHINMAYVIVEK/secure-sign.git\n   ```\n\n2. Change into the project directory:\n\n   ```bash\n   cd secure-sign\n   ```\n\n3. Initialize the Go module:\n\n   ```bash\n   go mod init secure-sign\n   ```\n\n4. Build the Docker image:\n\n   ```bash\n   docker compose up\n   ```\n\n## Usage\n\n### API Endpoints\n\nSecure Sign provides the following API endpoints:\n\n- **Register User:**\n\n  `POST /register`\n\n  Example Request:\n  ```bash\n  curl -X POST http://localhost:8080/register -d '{\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"gender\": \"Male\",\n    \"age\": 30,\n    \"email\": \"john.doe2@example.com\",\n    \"phone_number\": \"9234567892\",\n    \"salary\": 50000,\n    \"password\": \"1234\"}'\n  ```\n\n- **Login:**\n\n  `POST /login`\n\n  Example Request:\n  ```bash\n  curl -X POST http://localhost:8080/login -d '{\"username\": \"newuser\", \"password\": \"password123\"}'\n  ```\n\n- **Get User Details:**\n\n  `GET /user/{username}`\n\n  Example Request:\n  ```bash\n  curl http://localhost:8080/user/newuser\n  ```\n\n### Docker Deployment\n\nTo deploy the Secure Sign authentication service using Docker:\n\n1. Build the Docker image as mentioned in the [Installation](#installation) section.\n\n2. Run the Docker container:\n\n   ```bash\n   docker run -p 8080:8080 secure-sign\n   ```\n\n   The service will be accessible at [http://localhost:8080](http://localhost:8080).\n\n\n## Project Structure\n\n```\n\n├── app\n│   ├── health\n│   │   └── health.go\n│   └── user\n│       ├── fetch_user.go\n│       ├── login.go\n│       ├── registration.go\n│       └── user.go\n├── config\n│   ├── config.go\n│   └── postgres.go\n├── data\n│   ├── data.sql\n│   ├── secure-login.postman_collection.json\n│   └── test.sql\n├── helper\n│   ├── helper.go\n│   ├── postgres.go\n│   ├── validation.go\n│   └── zap-logger.go\n├── logs\n│   └── access.log\n├── middleware\n│   └── middleware.go\n├── server\n│   ├── router.go\n│   └── server.go\n├── test\n│   ├── cpu.prof\n│   ├── env\n│   ├── main_test.go\n│   ├── test.test\n│   ├── user_test.go\n│   └── users.json\n├── main.go\n├── compose.yaml\n├── dockerfile\n├── env\n├── go.mod\n├── go.sum\n└── README.md\n\n```\n\n### Profiling :\n\n  **Benchmark:**\n    \n    go test -run=XXX -bench . -benchmem\n\n  **CPU Profiling:**\n    \n    go test -run=XXX -cpuprofile cpu.prof -bench .\n\n    go tool pprof cpu.prof\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinmayvivek%2Fsecure-sign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinmayvivek%2Fsecure-sign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinmayvivek%2Fsecure-sign/lists"}