Skip to content
/ humbase Public

humbase is BaaS(Backend as a Service), influenced by Firebase .

Notifications You must be signed in to change notification settings

ophum/humbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

humbase

This Project is Experimental

humbase is BaaS(Backend as a Service), influenced by Firebase .

run

go run main.go --config config.yaml

config

listenAddress: localhost
listenPort: 8888
auth:
  secret: test-secret
store:
  apiKey: test-store-api-key

api

auth

email and password authentication.

sign-up

POST /api/v0/auth/sign-up
{
    "email": "user@example.com",
    "password": "passw0rd"
}
200 Response
{
    "token": "jwt token..."
}

sign-in

POST /api/v0/auth/sign-in
Request
{
    "email": "user@example.com",
    "password": "passw0rd"
}
200 Response
{
    "token": "jwt token..."
}

verify

POST /api/v0/auth/verify
Request
{
    "token": "jwt token..."
}
200 Response
{
    "status": "valid"
}

sign-out

DELETE /api/v0/auth/sign-out
Request
{
    "token": "jwt token..."
}
200 Response
{}

store

key value store used Golang map[string]interface{}

Request Header

Content-Type: application/json
humbase-store-api-key: apiKey-specified-in-config

findAll

GET /api/v0/store
Request
{}
200 Response
{
    "data": [
        "unique id...": {
            
        }
    ]
}

findByID

GET /api/v0/store/:id
Request
{}
200 Response
{
    "data": {

    }
}

put

create or update(overwrite data)

POST /api/v0/store
Request
{
    "id": "unique id",
    "data": {

    }
}
200 Response
{
    "data": {
        "unique id": {

        }
    }
}

del

delete key and data

DELETE /api/v0/store/:id
Request
{}
200 Response
{}

About

humbase is BaaS(Backend as a Service), influenced by Firebase .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published