Navigation: Website | Backend repository | Frontend repository
Default port is 8080
- POST /login -> Login with username and password, get a JWT for the other endpoints
- POST /register -> Create a new account
- GET / -> Test endpoint
- GET /stock -> All available stocks in database
- GET /stock/symbol -> Single stock (i.e. /stock/aapl)
- POST /buy/:id -> Buy a stock (if you have enough money)
- POST /sell/:id -> Sell a stock
- GET /wallet -> See your current money and stocks owned
PORT=8080
JWT_SECRET="YOUR_JWT_SECRET"
MONGODB_URI="YOUR_MONGODB_URI""