Newer
Older
[](https://bestpractices.coreinfrastructure.org/projects/7020)
# TJTS5901 Course app
This project will be ficusing on creating application that is supose to serve for auctionaing items. What we plan to inculde as it's features:
- User can register, login
- User can bid on items, and be notified once the auction is finished
- multilocalization
- restAPI for to use for more advance users
Keep in mind that everything we do is a school project and this application will never be depolyed to the general public.
## TJTS5901 Course Template Project
Project template for 2023 TJTS5901 Continuous Software Engineering -course.
- Sisu: <https://sisu.jyu.fi/student/courseunit/otm-38b7f26b-1cf9-4d2d-a29b-e1dcb5c87f00>
- Moodle: <https://moodle.jyu.fi/course/view.php?id=20888>
To get started with the project, see [`week_1.md`](./week_1.md)
Application address/deployment url : https://team13-webapp.azurewebsites.net/
Repository provides an `docker-compose` file to start the app. Edit `docker-compose.yml` to uncomment the ports, and run:
```sh
docker-compose up --build tjts5901
```
App can be also started from `Dockerfile`, with flask debug turned on, and current folder in editable mode. It has the benefit of automatically reflecting code changes in the app.
```sh
docker build -t tjts5901 .
docker run -it -p 5001:5001 -e "FLASK_DEBUG=1" -v "${PWD}:/app" tjts5901
```
Please see the `docs/tjts5901` folder for more complete documentation.
To report bugs and security issues, please use [the project "issues" form](https://gitlab.jyu.fi/13th/13-sins-of-gitlab/-/issues/new?issuable_template=Bug%20Hunt)
**Endpoints** and **other usfull things** that you can use to interact with our restAPI:
1. Register yourself using (https://team13-webapp.azurewebsites.net/register?email=\<your mail>&password=\<password you want>), omit the \<>
2. Login using GET (https://team13-webapp.azurewebsites.net/login?email=\<your mail>&password=\<your password>) or you can use POST with JSON.
3. You will recive a JWT token that is valid for 2 hours, keep it confidential!
4. For every request from now on don't forget to use your token in token bearer! If you want to try the API, but you don't want to do any fancy url writing use [this app](https://reqbin.com/)
5. Request all the items using [this link](https://team13-webapp.azurewebsites.net/auction_item/)
6. Bid on items using [this address](https://team13-webapp.azurewebsites.net/bid), don't forget to send a payload of type JSON structured in this way: {"item_id" : "item id you want to bid on", "bid_price" : amount_you_want_to_bid}