Giter VIP home page Giter VIP logo

cad's Introduction

CAD FullStack Application

๐ŸŽฏ Features

This is a Basketball Management System.

Responsible for storing and showing information about basketball tournaments.

  • โœ… Authentication System.
  • โœ… Password Encryption.
  • โœ… Animations.
  • โœ… Admin Dashboard.
  • โœ… Full Stack

๐Ÿ”Ž Tech Stack

BackEnd

  • Java
  • Spring Boot Framework
  • OAuth2

Database

  • MySQL

Frontend

  • React
  • React Router
  • Typescript
  • Firebase Storage

๐ŸŽž Installation

In order to run this repo, you will need

  • Java SDK 19
  • Maven
  • Intellij IDEA (preferably)
  • MySQL Server
  • Firebase Storage

๐ŸŽจ Getting things ready

Configure Spring Boot: Change environment variables based on your system.

Create application.properties file on /backend/spring-server/src/main/resources folder and paste.

application.properties file

spring.datasource.url=jdbc:mysql://localhost:{your mysql port}/{your mysql schema}?allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false&requireSSL=false

spring.datasource.username={your mysql username}

spring.datasource.password={your mysql passord}

spring.datasource.hikari.data-source-properties.useSSL=false

server.port=6004


spring.jpa.hibernate.ddl-auto= update

spring.jpa.open-in-view= false

logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE

jwt.public.key=classpath:app.key.public

jwt.private.key=classpath:app.key.private

Create app.key.private and app.key.public files on /backend/spring-server/src/main/resources/ folder

To use the openssl command, you need to have openssl installed on your system

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365

openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in key.pem -out pkcs8.key

Configure React: Change environment variables based on your Firebase settings.

Create .env file on /backend/spring-server/frontend/ folder and paste.

.env file

REACT_APP_apiKey=FIREBASE_API_KEY
REACT_APP_authDomain=FIREBASE_AUTHDOMAIN
REACT_APP_projectId=FIREBASE_PROJECTID
REACT_APP_storageBucket=FIREBASE_STORAGEBUCKET
REACT_APP_messagingSenderId=FIREBASE_MESSAGINGSENDERID
REACT_APP_appId=FIREBASE_APPID

REACT_APP_SERVER_PORT=6004 #This port is only used in development

You're all set

Package your project using maven and run java -jar {jar_path}.jar command

or

Run ./mvnw spring-boot:run command at /backend/spring-server/ path

Screenshots

image image image image

๐Ÿ‘จโ€๐Ÿ’ป Authors

๐Ÿ‘จโ€๐Ÿซ Lessons Learned

  • Make better planning for backend.
  • Design backend based on frontend's requirements.
  • Backend should contain more logic and deal with more operations.
  • Use React with a Build tool rather than standalone.

โ„น๏ธ Acknowledgements

cad's People

Contributors

tryferos avatar nikoreve avatar vasilis-thomas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vasilis-thomas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.