Code Monkey home page Code Monkey logo

codeu_spring_2018's Introduction

CodeU Example Project

This is an example chat application. It iss complete and functional, but leaves plenty of room for improvement.

Step 1: Download Java

Check whether Java is already installed by opening a console and typing:

javac -version

If this prints out a version number, then Java is already installed. Skip to step 2. If the version number is less than javac_1.8, upgrade to the newest version of Java by following these instructions:

Download the JDK (not the JRE) from here.

Retry the javac -version command in a new console window to check the installation. If a version number does not show up, then update the PATH environment variable so that it contains Java's bin directory. Follow these directions to do so.

Step 2: Download Maven

This project uses Maven to compile and run the code. Maven also manages the dependencies, runs the dev server, and deploys to the App Engine.

Download Maven from here. Unzip the folder anywhere.

Make sure there is a JAVA_HOME environment variable that points to the existing Java installation, and then add Maven's bin directory to the PATH environment variable. Instructions for both can be found here.

Open a console window and execute mvn -v to confirm that Maven is correctly installed.

Step 3: Install Git

This project uses Git for source version control and GitHub to host the repository.

Download Git from here.

Make sure Git is on PATH by executing this command:

git --version

If you don't see a version number, then make sure Git is on your PATH.

Step 4: Setup your repository

Follow the instructions in the first project to get the repository set up.

Step 5: Run a development server

In order to test changes locally, you must run the server locally, on your own computer.

To do this, open a console to your codeu_project_2018 directory and execute this command:

mvn clean appengine:devserver

This tells Maven to clean (delete old compiled files) and then run a local App Engine server.

You should now be able to use a local version of the chat app by opening your browser to http://localhost:8080.

Step 6: Make a change!

  • Bring down the existing server by pressing ctrl+c in the console running the App Engine devserver.
  • Modify a .java or .jsp file. (Update the homepage by editing the index.jsp file.)
  • Bring the devserver back up by executing mvn clean appengine:devserver again.
  • Refresh your browser to see your changes!

codeu_spring_2018's People

Contributors

chenpionaar1998 avatar cindyhyl avatar kevinworkman avatar nmccrack avatar sherryyang2016 avatar turtlefarmer avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nmccrack cindyhyl

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.