Skip to content

NotPunchnox/Hiroka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HIROKA

Hiroka is a microservices-based forum application.

server:

Installation

To install the server, run the following command:

Launch

To launch the server, use PM2 with the following command: pm2 start './gateway/main.js'


For authentication, the system uses a token generated with the jsonwebtoken library, utilizing the `HS256`` algorithm.

ScreenShot

Port 8080 is used for the gateway.

endpoint:

Register User

{
    username: String,
    email: "email@example.com",
    password: String
}
  • Response:
{
  token: String(jwt)
}

Login User

{
    email: "email@example.com",
    password: String
}
  • Response:
{
  token: String(jwt)
}

Update User (@me)

{
    email: "email@example.com",
    password: "String",
    status: "Number (0 or 1)",
    bio: "String",
    username: "String"
}
  • Response:
{
  token: String(jwt)
}

client

The client is built using the HJS (Hogan.js) template, which allows calling HTML pages from Node.js.

files:
  /src/public
  /src/views

About

Hiroka is an educational communication app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published