Skip to content

lordssa/cvc-fullstack-solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVC API-Project

API Rest Grupo CVC

Broker coded with Java Spring Boot and frontend with Vue.js

Prerequisites

  • Java 8 - Development Kit
  • Spring Tools 4 for Eclipse - IDE for Development
  • Git - Open source distributed version control system
  • NodeJS - JavaScript runtime built on Chrome's V8 JavaScript engine
  • Vue CLI 3 - Standard Tooling for Vue.js Development
  • VSCode - Lightweight source code editor for client-side (Not mandatory)

Installing

Checkout the code from Github repository inside Eclipse Workspace

$ git clone https://github.com/lordssa/cvc-fullstack-solution.git
$ npm install 

After acquire the project, open the Eclipse and select the option "import existing Maven projects" in "File > Import"

Once you have maven installed on your environment, install the project dependencies via:

mvn install

Running

Once you have installed dependencies, this can be run from the CvcProjectApplication.java main method directly, or from a command line:

mvn spring-boot:run

The API will be available at http://localhost:8080/api/

To run the client side, run the command below

cd client
npm run serve

Open your browser and go to http://localhost:8081 and you should see the results

Accessing API documentation

After server up, access http://localhost:8080/swagger-ui.html. On the sale-controller contains a list of API services, parameters and output sample.

Trying out

Through Swagger.

*Example*
On the section sale-controller, select method GET "/api/hoteis/detalhes" and click "try it out" button, fill the required parameters, click in execute button and that's it!

Built With

  • Spring Boot - Spring Boot 2
  • Maven - Dependency Management
  • Swagger 2 - Documentation and User Interface for the REST Service
  • Vue.js - Progressive Javascript Framework for building UI on the web

Authors

  • Cid Soares - Initial work

About

API and Frontend to Quote Hotel Prices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published