BRIDGES-Java Using Repl.it

Step 1: Create Repl.it account
  • If you do not have a Repl.it account navigate to the Repl.it site and create an account for yourself.
Step 2: Create BRIDGES Account Visit the Bridges main page and create yourself an account by clicking the login button on the top navigation bar. Please ensure that your user id is devoid of spaces, as it will be used as part of the web link for your projects. After creating your account, click on your profile name in the upper right corner to view your profile. Once in your profile, you will see your API Key; you will need this API key later in the tutorial (as well as in every BRIDGES program you write). NOTE:Make sure to remember your password.
Step 3: Get Java Installation template to install BRIDGES and its Dependencies Repl.it allows Repls (programs) to be installed via a template mechanism; You will import a BRIDGES Java Replit template from a git repository, that will create an example BRIDGES program. This involves the following stpes.
  • Once you are logged in, look for the blue + Create button on the top of the left side bar; click on the button (see adjacent image)
  • Click on the Import from Github button on the top right of the popup window and enter https://github.com/BridgesUNCC/bridges-java-replit-template , and click on the Import from Github button.
  • The BRIDGES program will load (takes a few seconds!) and you you will see IDE popup wih an editor on the left and a console on the right (see adjacent image). Click on the file Main.java and you will see the trivial BRIDGES Hello World program.

Step 4: Load and run an example BRIDGES program
  • Go to this BRIDGES Tutorial and copy/paste the Java tutorial program into the main window.
  • Set an assignment number, and your credentials (assignment number, BRIDGES user name and API key) in the line that creates the Bridges object at the beginning of the program.
  • Run the program by hitting the Run button
  • If everythong compiles and runs correctly, you will see a link printed on the console. Use that to visualize the output.
Please Note:
  • Each new repl (BRIDGES program) will require the above steps to access the BRIDGES API.
  • Note that a specific BRIDGES program might require additional include files. Refer to the BRIDGES Java documentation and BRIDGES Tutorials for additional help.
  • A typical Java program will have multiple source files.