-
Clone the Git repository to your local machine using
git clone https://github.com/mruskamp/RPIEats
. -
Download and install NodeJS from the following link: https://nodejs.org/en/download/
-
Inside your local repository run
npm install
to download and install the necessary packages to run the website. -
Edit the server endpoint in
src/data/endpoint.js
to the proper origin. This will adjust the endpoint for sending and receiving data to the server. Refer to Server Development/Deployment for more information. -
To run the website locally in development mode, run
npm start
. Open http://localhost:3000 to view it in the browser. The page will hot reload when editing the source code.
To build the website run npm run build
. This will build the app for production in the build
folder. It correctly bundles React in production mode and optimizes the build for the best performance. See the section about deployment for more information.
- Download and install the IntelliJ Idea IDE from the following link: https://www.jetbrains.com/idea/
- Open IntelliJ and navigate to File -> New -> Project From Version Control -> Git
- In the
Clone Repository
dialog box that opens up, enter the link https://github.com/mruskamp/RPIEats.git into the URL box. - Install the Gradle project manager/builder from https://gradle.org/install/
- In the terminal inside of IntelliJ with the project open, run the command gradle build
- Run the main class folder App.java
To deploy the Java Spark backend server to a cloud application platform like Heroku, please refer to this Heroku-Spark tutorial for more information.