+
Skip to content

k1rana/klontong-express

Repository files navigation

Tech Stack

klontong.

Rest API for klontong app!

Demo · Related Projects

Powered by Vercel ⚡


Table of Contents

Overview

klontong. REST API is a backend server implementation designed for a online shop using the Express framework. It provides a robust and scalable solution for managing various aspects of a coffee shop's operations, such as products and categories.

The REST API follows the principles of Representational State Transfer (REST), which enables easy integration with various clients, including web and mobile applications. It utilizes the HTTP protocol for communication, allowing clients to perform operations such as retrieving, creating, updating, and deleting resources.

Features

  • Authorization & Authentication
  • Upload Images
  • CRUD (Products, Categories, User)
  • Whitelisting JWT
  • Error Handling & Validation

Tech Stack

Getting Started

Prerequisites

Instalation & Environments

  1. Clone this repository to your local

    git clone https://github.com/nyannss/klontong-express.git
  2. Install dependencies

    cd klontong-express && npm install
  3. Setup environments (you can see in .env.example)

    • Relational database management system such as MySQL, PostgreSQL, etc (see more instructions)

      DATABASE_URL="mysql://johndoe:randompassword@localhost:3306/mydb"
    • JSON Web Token Secret Key (prefer using random string) [see more information]

      JWT_SECRET_KEY = (put your secret key)
    • Image server using ImageKit [you can create account in here]. Get them from dashboard

      IMAGEKIT_ENDPOINT=(imagekit endpoint)
      IMAGEKIT_PUBLIC_KEY=(imagekit public key)
      IMAGEKIT_PRIVATE_KEY=(imagekit private key)
  4. Last, run the app

    npm run start

Postman Documentation

You can see the documentation from Postman

If you using json file, just open your postman and click import.

Table Structure

You can see just in this link.

Run this to start migrate database

npx prisma migrate deploy

Related Projects

Contributors

License

This project using ISC License

Report

Any error report you can pull request or contact: nyannss@proton.me

About

Rest API for klontong-react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载