Database Theory - 2dv513
Stack:
- NextJS
- TypeScript
- BaseUI
- GraphQL Apollo (Server & Client)
- TypeORM
- ExpressJS
- PostgresSQL
Requirements:
- Redis
- Postgres
- NodeJS
Getting started:
Ensure that you have redis and postgres installed and running.
- Create a postgres database. Update database name, username, password and port in
.env
. - If everything is configured correctly, you should be able to start the application using:
yarn dev
ornpm run dev
. - Once the application is connected to redis and postgres, you should stop the server and run:
yarn run seed
ornpm run seed
which will create all product categories and some default products. - Start the application after executing the seed command.
- Visist localhost:3000 to access the application.
Account:
The seed command / file create a test user which you can use to login and test the application:
Username: test@test.com Password: test@test.com
GraphQL
Visit localhost:3000/graphql to access GraphQL Playground and view all available queries, mutations and types.