GithubHelp home page GithubHelp logo

demoserver's Introduction

Demo Server

Getting Started

To use this project first make sure you have npm or yarn installed. These are dependency managers that will download everything you need for the project.

Running the frontend (web)

This should look familiar. First, navigate into the web directory and install all dependencies:

$ cd web
$ npm install //Install all dependencies

npm should start downloading everything it needs to build the app.

To launch the app:

$ npm run dev

Running the backend (server)

You have the option of opening this in an IDE like IntelliJ and running through run configurations. I will go over running from the command line.

First, navigate to the project root (where the pom.xml is located). Run the following to package the code into a jar:

$ mvn package

Now run the jar file by running the following code:

$ java -cp target/DemoServer-0.0.1-SNAPSHOT-jar-with-dependencies.jar edu.csu2017fa314.DemoServer.Demo

It works (hopefully)

You should now be able to type into the input box and press enter. The server is coded to return an image url and a list of numbers. These should be displayed on the webpage. If you open the browser console (development tools) I have added a few logs explaining what is happening. Comments can be found in the code that explains what each part is doing. If you have any questions feel free to post on Piazza or email the team directly. You may also approach me in person if to talk about this code or to set up a meeting to work through it.

demoserver's People

Contributors

sswensen avatar tjohns0n avatar davemattcsu avatar

Watchers

James Cloos 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.