-
Add all the environmental variables. Contact a dev team member for these values
-
Run the application
A) Run the Jar java -jar build/libs/stocktrade-1.0.jar
Or
B) Run the application from the main file with intellij
-
The application will now be running on port 8080 with context path /stock-trade
docker run -p 27017:27017 mongo
docker run -p 6379:6379 redis
./runOnVm.sh
To build and run the docker container
./gradlew bootJar
This builds the jar that will be put into the docker- Export the MONGO_URI and JWT_SECRET environment variables the values can be gotten from the dev team
docker build -t stocktrade .
This creates the container image. Must be run from theSeng-468-be/
directorydocker run -e MONGO_URI -e JWT_SECRET -p {hostPort}:8080 stocktrade
The app can then be access at the host port- ^C (Ctrl. C) to end the program
- Create a User POST to {HOST}/stock-trade/users/sign-up {username,password,email}
- Login POST to {HOST}/stock-trade/users/login
- Add the Bearer token to requests as an Authorization header
All the requests for the system can be seen using the swagger ui available here Paste the auth token from the login into the authorize button (No prefix just the token) and then all requests will be authorized