/Hiroka

Hiroka is an educational communication app

Primary LanguageCSSMIT LicenseMIT

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