Skip to content

ntu-SRSLab/EvoMe-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EvoMe Web Interface

This repository hosts the front-end code of EvoMe. The back-end code of EvoMe can be found at: https://github.com/LiMengyang990726/EvoMe.

A closely related project is Diffbase, which provides the underlying fact extraction and querying infrastructure.

Quick Started

  1. Clone this project into the local machine
git clone git@github.com:ntu-SRSLab/EvoMe-Web.git
cd CodeVQL-Web-Interface
  1. Start server side
cd server 
npm install     ### install dependency
node server.js  ### start server
  1. Start vue application
cd app 
npm install       ### install dependency
npm run serve     ### start vue 

Here, open http://localhost:8081/, and then browser a local file, you will have something like this. alt text

If everything goes well, you can try to integrate your command line tool within the server side code.

Integration with the Command Line Tool

I have prepare a template within "server/server.js". You can try to integrate your tool at the specified place.

io.on('connection', socket => {
     // your server logic 
  function server(testedfile){
    // (invoke your command line tool and return the output)
    // output = shell.exec(...cmd)
    output = "This is the result of executing command line tool on file " +testedfile;
    socket.emit(ServerResponse, output);
  }
  ...
}

Structure

app
  --src  this directory contains vue application source code.
server
  --server.js  this single file includes all the server code.

Others

Please feel free to customize the vue application. Currently it seems a little simple.

Contacts

Please email to lime0040@e.ntu.edu.sg if you have any question.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors