Before starting this project you will need a couple of tools to run this project
- IntelliJ or other multi language IDE
- The latest version of MongoDB
- A grasp of TypeScript, Angular-2 and Java's Apache Spark Platform
❗❗🔥Note: If IntelliJ ever prompts you to compile typescript files into javascript say no!. Doing this will confuse webpack and break the client side of your project during build. No permanent damage will be done, but it's pretty annoying to deal with.
Go to View/Tool Windows/Gradle
-
Go to server/Tasks/application
click run
-
Go to client/Tasks/application
click runClient
You can now visit the running dev project at http://localhost:9000/ 💥
This part is pretty simple. I made a bash script that will clean, build, gradle and start the server. I also normally use a cool tool called tmux to start a process, be able to walk away from deploy-user, come back, re-attach to the process, and see how the server is doing. Here are some easy steps to get the project up and running:
cd
into the project directorytmux
to create a tmux sessionchmod +x buildAndLaunchProject.sh
buildAndLaunchProject.sh is a bash script I made to clean, build, and start the server. chmod +x makes this file executible../buildAndLaunchProject.sh
actually starts the script. Keep watching it until you see that the server has stared. Can easily take 5 minutes.ctrl b
and thend
to disconnect from the tmux session.
And now your server is running!!! You can visit the live production website at http://localhost:2538/ 💥