Skip to content

andi-faizal94/authentication-hono-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hono and authentification

Implement Authorization and Authentication with Hono JS


Table of Contents

  1. Introduction
  2. Tech Stack
  3. Installation
  4. Usage
  5. API Documentation
  6. Database Setup
  7. JWT Authentication
  8. Contributing
  9. License

Introduction

This project is a web application built using the Hono framework. It leverages JWT for authentication and MySQL as the database backend. It allows users to sign up, log in, and perform other actions with secure API endpoints.


Tech Stack

  • Hono: A fast and minimal web framework for building APIs.
  • JWT: JSON Web Tokens for handling user authentication.
  • MySQL: A relational database used to store user and application data.
  • Node.js: JavaScript runtime for running the application.

Installation

Prerequisites

Ensure you have the following software installed:

  • Node.js (v14 or higher)
  • MySQL Database

Steps to Install

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/project-name.git
    cd project-name
  2. Install the dependencies:

     npm install
  3. Set up the environment variables (e.g., in .env file):

     touch .env
     Add the following configuration:
     DB_HOST=localhost
     DB_USER=root
     DB_PASSWORD=yourpassword
     DB_NAME=your_database_name
     JWT_SECRET=your_jwt_secret
  4. Create and configure your MySQL database. Usage Running the Application To start the development server:

    bun run dev

About

Authentication with Hono

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published