Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] web interface for DSpot #847

Merged
merged 27 commits into from
Aug 9, 2019
Merged

[WIP] web interface for DSpot #847

merged 27 commits into from
Aug 9, 2019

Conversation

henry-lp
Copy link
Contributor

@henry-lp henry-lp commented Jul 23, 2019

Hi, this is a PR for the webinterface task . Per discussion today I need to get handle issue #843 before this can really be deployed for actual use, since we need real data, but this is more or less done as a basic website for dspot :) .

Some facts: this web is build using MEAN stack , which stands for Mongodb, Express, AngularJS and NodeJS. Reason I am implementing this is because it has Mongodb in it since Repairnator also use Mongodb and this is just for a small website so no need to super flashy stuffs (yet) :) and also I know that you guys (Both on Dspot and Repairnator) like Java so basicly this stack is heavily focused on Javascript which is perfect for that reason . Other than that the html pages are ofcourse build with the classical html, javascript and css together with bootstrap 4 for styling.

To use you need mongodb installed on your machine, preferably version 4.0 or above (since I am using it and It works for me and I can't guarantee for other version yet).

Install basic dependencies and mongodb dependecy.

  cd dspot-web
  npm install 
  npm install mongodb

To run

  cd dspot-web
  DEBUG=myapp:* npm start

Then check out at http://localhost:3000 . Note that since you don't have any data it will look a bit empty :) .

@coveralls
Copy link

coveralls commented Jul 23, 2019

Pull Request Test Coverage Report for Build 2157

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.3%) to 84.584%

Files with Coverage Reduction New Missed Lines %
dspot/src/main/java/eu/stamp_project/test_framework/AbstractTestFrameworkDecorator.java 1 57.14%
dspot/src/main/java/eu/stamp_project/utils/options/AmplifierEnum.java 2 94.59%
Totals Coverage Status
Change from base Build 2098: 0.3%
Covered Lines: 4938
Relevant Lines: 5838

💛 - Coveralls

@monperrus
Copy link
Member

Cool progress! Could you add dspot-web/README.md to explain what it does and how it deploy it?

@henry-lp
Copy link
Contributor Author

Cool progress! Could you add dspot-web/README.md to explain what it does and how it deploy it?

Yes I plan to do that after I am done with the Mongodb feature :) , since I also might need to change the current webinterface to fit with this new feature for Dspot.

@monperrus
Copy link
Member

add README.md to explain how to deploy it

@monperrus
Copy link
Member

Good progress!

First comments:

  • remove Dockerfile
  • add screenshots and explanation in README.md
  • remove from the UI the selector choice
  • remove from the UI the branch choice (always master or develop)

@henry-lp
Copy link
Contributor Author

henry-lp commented Aug 5, 2019

@monperrus resolved :).
Travis: Only failed check style unrelated to this PR.

@henry-lp
Copy link
Contributor Author

henry-lp commented Aug 6, 2019

@monperrus Resolved :). Awaiting for new comments.

dspot-web/README.md Outdated Show resolved Hide resolved
dspot-web/README.md Outdated Show resolved Hide resolved
dspot-web/README.md Outdated Show resolved Hide resolved
@monperrus monperrus changed the title [WIP] webinterface task [WIP] web interface for DSpot Aug 6, 2019
@monperrus
Copy link
Member

Thanks @tailp for the progress.

@monperrus
Copy link
Member

monperrus commented Aug 6, 2019 via email

@henry-lp
Copy link
Contributor Author

henry-lp commented Aug 6, 2019

Hi :), I believe a modal would fit your preference perfectly. It's an overlay window upon the current page after clicking on the submit button. WDYT ? :) . Best that I make something like that and post a screenshot here.

@henry-lp
Copy link
Contributor Author

henry-lp commented Aug 7, 2019

@monperrus hi :) , Issues resolved more or less. Here is the link to dspot app. I didn't set up a proper url like you proposed yet since I am deploying this with my own cluster. @gluckzhang can help me with the DNS domain on KTH cluster later if this get accepted :).

@gluckzhang
Copy link

Thanks @tailp for the progress! You could email me the ip address so that I will set up a domain name for your demo. If the project has been containerized, I could also help to deploy it into our k8s cluster.

@henry-lp
Copy link
Contributor Author

henry-lp commented Aug 7, 2019

Thanks @tailp for the progress! You could email me the ip address so that I will set up a domain name for your demo. If the project has been containerized, I could also help to deploy it into our k8s cluster.

@gluckzhang thank you :) , I'll send you the two yaml files later, One for the webapp and the other for the pipeline. These can be done with the mongodb and activeMQ we already have previously for repairnator.

@henry-lp
Copy link
Contributor Author

henry-lp commented Aug 8, 2019

Hi @monperrus , resolved :) .

@monperrus
Copy link
Member

LGTM @danglotb merge?

@danglotb danglotb merged commit 0b47f0b into STAMP-project:master Aug 9, 2019
@monperrus
Copy link
Member

Great milestone, thanks to all for the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants