No DB specified so I opted for lowdb (flat-file) for set up simplicity (no docker stuff with mongo / postgres), but I have structured in a way where it can be easily replaced by any DB.
Run the app
yarn install
yarn db:init
yarn dev
Go to http://localhost:9000/
to see the app.
No global dependencies needed besides yarn
and node (I'm on 8.9.4).
Once set up you can use the admin account using admin/admin (no players) or sign yourself up as a team owner (20 generated players).
db.json will be created. If you edit this, restart the app manually.
yarn prettylint
will run prettier and tslint.
Notes
- I have opt for the owner to sell a player for any price. If a player is bought for that price, their value is updated.
- I have split teams and users to not restrict the ability to switch teams, manage multiple teams etc.
Completed
account log insign upgenerated team + playerstransfer own playerbuy a playeredit profilemanager/admin create teamsmanager/admin edit teamsfilters name, country, teamdashboard, messageslogoutREST api / accesstokenadmin create playeradmin deleteadmin editadmin change roles
Bonus
- refactoring
- ui / ux
- unit / e2e