Skip to content

raxorpro1/scrapbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ScrapBook 1.0

This is a simples website that adds, edit and deletes messages on a scrapbook using PUT, GET, DELETE, POST HTTP methods.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

as follows:

Eclipse
Maven
Java

Installing and Running

There is two ways to run this, they are:

Eclipse Project:

On eclipse -> Right click on Scrapbook.java -> Run as -> Run Configuration -> Java Application 

and then open Arguments TAB and put the code below on VM Arguments

-Dspring.profiles.active=local

This will execute the code on the local profile and save stuff on H2. To save it on a DB(postgres in this case) chande local to prod, as:

-Dspring.profiles.active=prod

Finally hit your browser with

localhost:8080/scrapbook

*Just remember to check the ports your DB is listening and to have the same table and columns as Message.java

Second way is running the jar file directly, for that: Find the scrapbook.jar inside the target folder and run a CMD command from that folder:

java -jar scrapbook.jar --spring.profiles.active=local

Built With

Authors

  • Matheus Mordost - Scrapbook 1.0 - Raxorpro1

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published