GithubHelp home page GithubHelp logo

inventory-ms's Introduction

Inventory API

This is a simple API for recording inventory items using spring-boot. actually this is clone from my other repo https://github.com/ilham-openbeta/spring-inventory-jdbc the differences are :

  • using Java 17
  • Spring Boot 3
  • Service separation

Some features is not working & removed because of upgrading java version.

Features :

  • JWT Authentication

  • SpringDoc OpenAPI

  • Native Query (JDBC Template)

Tested on :

  • OpenJDK 17

  • MariaDB 10.4.16

How to Install

  1. Clone this repository.
git clone https://github.com/ilham-openbeta/spring-inventory-jdbc.git
  1. Import database/inventory.sql file to the MySQL database server.

  2. Configure application.yml file at src/main/resources directory or you can configure these environment variables :

Name Description Default
PORT Server Port 8080
API_KEY JWT Secret Key defaultSecretKey
DB_HOST Database Host localhost
DB_PORT Database Port 3306
DB_NAME Database Name inventory
DB_USER Database User root
DB_PASS Database Password -
  1. Run the application (development).
mvnw spring-boot:run

Open the swagger docs at this URL for a list of available API endpoints. To get an authorization token, use signup then signin.

http://localhost:8080/api/swagger-ui.html
  1. Debugging : Configure your IDE to debug the main class (InventoryApiApplication.java).

How to build

  1. Build project.
mvnw clean install
  1. Run the application after build finished.
java -jar target/inventory-api-0.0.3-SNAPSHOT.jar

TODO

  • Unit Testing
  • Fix a lot of error

License

MIT. See the LICENSE file.

inventory-ms's People

Contributors

ilham-openbeta avatar

Watchers

 avatar

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.