Skip to content

piratinskii/SCECafe-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cafeteria manangment system - Backend part

Frontend for the project is here: https://github.com/piratinskii/SCECafe-frontend

Project Description

This is my college project and my first ever fullstack RESTFul application. I wrote it using JAVA and Spring for the backend and React for the frontend. As database I used PostgreSQL.

In this project you can:

  • Add/remove/change items into your menu as admin
  • Order the items as user
  • Mark items and orders as done as barista.

Installation

  1. Clone the repository (use these commands in the terminal):
    git clone https://github.com/piratinskii/SCECafe-backend.git

    cd SCECafe-backend

  2. Setup your Postgresql database and remember IP, Port, name of the database and credentials for the connection.

  3. Set the database information (This project works with PostgreSQL): For linux:

    export DB_URL=jdbc:postgresql://localhost:5432/postgres
    export DB_USERNAME=postgres
    export DB_PASSWORD=postgres
    

    For Windows:

    $env:DB_URL="jdbc:postgresql://localhost:5432/postgres"
    $env:DB_USERNAME="postgres"
    $env:DB_PASSWORD="postgres"
    

    Of course, change all information to your credentials.

  4. Build the project using gradle: Linux: ./gradelew build

    Windows: Just start gradelew.bat file

Usage

Run the server:

./gradelew bootrun

and use this frontend: https://github.com/piratinskii/SCECafe-frontend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages