/Thinkable-Fullstack-Engineering-Intern-Technical-Assessment

This is the coding challenge to join the Fullstack Engineer Intern position at Thinkable

Primary LanguageTypeScript

Thinkable blog

Project set up

  1. Running the database

in this Project I used PostgreSQL inside a docker container, so to run the DB run the following command MacOS

docker compose up -d

linux

docker-compose up -d

after running the DB container now we Have to use prisma migration and generate prisma ressources for the backend check section-2

  1. Running the migration

NOTE: of cours you have to run npm i to install dependencies otherwise nothing from what's comming next is going to work

since we are using Prisma for our ORM, we have to create a migration so the the DB includes the tables to do so run the following command

npx prisma migrate dev
  1. Running the app

Now that everything is set up we can run the app using the follwing commands

build

npm run build

deploy

npm run start
  1. testing the app

the app includes some unit tests to run them use the following command

npm test
  1. what's next

you might want to check the documentation and to understand how the app is built a full backend documentation is available here