valentin1009 / login

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This project contain.

  • container for Frontend (React)
  • container for Backend (NodeJS)
  • container for Database (Postgres)
  • container for pgAdmin

Get started

  1. Clone this project
  2. Start all containers
docker-compose up -d
  1. Enter in Backend container to run migrations&seeds:
docker-compose exec backend sh
  1. Run migration
npx prisma migrate dev
  1. Run seeds to insert some dummy date in DB
npx prisma db seed

Now you have the project up and running

General

Notes

  • The backend logic is a bit more advanced than FE. When I saw the test for the first time I thought I'll need a more advanced auth system to make the second request to BE. So you'll find in BE a JWT auth logic, but right now is dead code. I keep the code there for further development steps.
  • You can use pgAdmin to access database using a UI.

About


Languages

Language:TypeScript 84.0%Language:HTML 7.1%Language:JavaScript 4.0%Language:CSS 3.8%Language:Dockerfile 1.1%