Git Product home page Git Product logo

minifileservice's Introduction

Mini File Service

Description

  This is a mini file service application.

  Project Requirements are defined here 'minifileservice/docs/Mini File Service Design.doc'.

How to Setup Application

  First you need to install postgresql for database.

  You should set the username as 'postgres' and password as '12345'. If not, you should update the datasource username and password according to your postgresql. You can do it from src/main/resources/application.properties.

  After the install, create a database named 'mini_file_service_db'

  Then you can clone the project.

  After the clone, git bash to the project folder and write the following

- mvn clean install
- cd target
- java -jar minifileservice-0.0.1-SNAPSHOT.jar

That's it. Now you can click this link to open Swagger UI and test the project or you can test the project on Postman.

Notes

  During the initialition of the project two user are created. These are 'admin' and 'user'. Here is the details of the users:

- username: admin - username: user
- password: admin - password: user
- user role: ADMIN_USER - user role: REGULAR_USER

Test Application On Swagger UI

  Open [this link](http://localhost:8080/swagger-ui/) to test the project on Swagger UI.

  • First send a login request and copy the token in the response.
  • username : admin and password: admin
  • username : user and password: user



  • Then click to the Authorize button and type 'Bearer ' then paste the token here (Bearer + space + token). When you click to the Authorize button swagger ui will be authorized and all other request will be runnuble.



Now you can test all the methods.

Test Application On Postman

  Get exported collection files from 'minifileservice/docs/postman collections' and import them in the postman. After the import please select LocalHost environment. Then you can start to test application.

  • First run the 'Authenticate' request with the username and password. This request sets 'token' environment. After this request all other request will be runnuble.



Now you can test all the methods. Some requests have path variable. You may need to update this path variables.











by Hakan Kahraman

minifileservice's People

Contributors

hakankhrmn 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.