ATA Coffee-Backend

Backend for ATA Coffee Appliation

API Documentation

You can check Postman API Documentation Here

Application Instalation

  1. Make sure you already have Redis installed on your machine
  2. Clone ATACoffee-Backend Repository
  3. Install Required NPM Packages

    npm install

  4. Create database named coffee_shop and import coffee_shop.sql from this project folder
  5. Create .env files with this value
    • PORT= (Your decided port number, ex:3000)
    • DB_USERNAME= (Your Database User)
    • DB_PASSWORD= (Your Database Password)
    • DB_NAME=coffee_shop
    • JWT_SECRET= (Your own JWT)
  6. Start Redis Server

    redis-server

  7. Start Application

    npm start

Features

  • JWT Authentication
  • Multilevel Authorization (Admin and Customer)
  • Upload Image Multer
  • CRUD Items
  • CRUD Categories
  • CRUD Orders
  • CRUD Users
  • Redis Server

Frontend

Frontend dari aplikasi ini dapat dicek pada tautan berikut ATA-Frontend

NPM Packages Used