The setup for our project is based around the assumption that we are using IntelliJ Idea. The setup is as follows:
- When prompted to create a new IntelliJ project, select yes.
- Select Create project from existing sources
- Make sure Use default Gradle wrapper is selected.
- Click Finish.
- When the project loads up there will be a little prompt in the bottom right corner with a link to install/update NPM, you are going to want to click that.
- You can confirm that the install worked if you see a little npm tab near the bottom left of your screen
- Once that it is done, you will want to open up the Terminal and simply
type in
yarn
then run it - If IDEA asks you if you want to compile JavaScript to TypeScript 🔥 DO NOT 🔥 it will break your project.
gradle
, ng
, and a thing called webpack
which you
never explicitly see) to do that compilation. If you let IDEA do it, you'll
have a ton of JavaScript files cluttering up your project and confusing other
tools.
- When you want to run the client, simply type ng servein the terminal of
your choosing. NOTE: If you want to use a standalone terminal, don't forget to
cd
into your project - Once it has compiled, go to
http://localhost:9000
to see your website!
Testing options are still integrated in this lab so you can test the client, or the server or both. Testing client:
ng test
(in the terminal) will run all client tests and re-run after every safe.
NOTE: The npm window is know to be buggy, so please run all commands in the terminal
Turn on your repo in Travis CI, replace the build status image in this README, and push your changes. That will trigger a build with Travis.