Coder Social home page Coder Social logo

labsec's Introduction

LabSec Challenge

1. Used Software

  • IDE Eclipse Photon Release (4.8.0)
  • Tomcat 9 as Server
  • jdk version 1.8.0_171

2. Instruction to run

  • Donwload Tomcat and Unzip tomcat zip file. Example:

    C:\apache-tomcat-9.0.0.M22

To test de code:

  • Set up the Apache Server to use it from Eclipse: take a look at these tutos tomcat1, tomcat2.

  • Clone/download this repository.

  • Open Eclipse and import as Maven Project the 2 projects in the repository folder.

  • The project FrontFileUploader is the frontend that displays the HTML to choose a file in the file system and upload to the rest endpoint.

  • The project LabSecFileUploaderService is the backend (REST service) responsible to compute the SHA-256 hash of submited files and return a string encoded using base64 encoding of this hash.

  • Run maven install in the 2 projects (Select a project in the tree explorer, rigth click got to "Run As >> Maven Install"). In the eclipse console shoul appear a message showing that the build process was executed succesfully.

    [INFO] ----------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ----------------------------------------
    [INFO] Total time: 3.614 s
    [INFO] Finished at: 2018-07-11T23:25:47-03:00
    [INFO] ----------------------------------------
  • Deploy the to projects to the Server

  • Start the server and navigate to http://localhost:8080/FrontFileUploader/ choose a file and upload it.

labsec's People

Contributors

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