DATABASE_URL
-> is a private variable that I have prepared for you on the sides.
Run cp .env.example .env
and hydrate the DATABASE_URL
field accordingly.
If you are using the DATABASE_URL I provided, you only have to run npx prisma generate
.
If you are running your own fresh DB instance, you have to do npx prisma db push
which will seed and generate the database accordingly.
npm install
npm run dev
Project runs at port 3333 by default -- feel free to change it.
I am using TSOA to generate my routes and using their decorators to codegen OpenAPI-spec docs.
swagger.json
is produced and hosted on /docs
in all environments except production
.
For this project, we are powered by Aiven, a database provider that has a free tier.
User login and registration are settled.
WHEN user visits Fixtures listing page
THEN user should be able to see list of fixtures (Tournament name, Home & Away team, Match score)
AND user should be able to scroll down to view more fixtures
WHEN user reaches the bottom of Fixtures listing
THEN more fixtures will be loaded
WHEN user clicks on the calendar icon on Fixtures listing page
THEN user should be able to a calendar view
AND user should be able to click on dates with matches
AND user should not be able to click on dates without matches
Swagger docs should do it
Hydrate it with all the needed information to run this project locally.
Special shoutout for Prisma, the tool has a series of steps needed to get the thing seeded and ready to rock.
Note: probably send Aiven's DATABASE_URL privately via email