/p4b-exam

Examen programador React

Primary LanguageTypeScript

React developer exam

This project uses Turborepo as incremental bundler and build system for monorepos.

What's inside?

This turborepo uses pnpm as a package manager. It includes the following packages/apps:

Apps and Packages

  • @repo/web: a Next.js app
  • @repo/api: an Nestjs server
  • @repo/ui: ui: a React component library
  • @repo/eslint-config-custom: eslint configurations for client side applications (includes eslint-config-next and eslint-config-prettier)
  • @repo/eslint-config-custom-server: eslint configurations for server side applications (includes eslint-config-next and eslint-config-prettier)
  • scripts: Jest configurations
  • @repo/logger: Isomorphic logger (a small wrapper around console.log)
  • @repo/typescript-config: tsconfig.json's used throughout the monorepo

Each package/app is 100% TypeScript.

Docker

This repo is configured to be built with Docker, and Docker compose. To build all apps in this repo:

# Start prod in detached mode
docker-compose up -d

Wait about 10 seconds until MySQL setup all the connections then open http://localhost:3000.

To stop all running containers:

docker-compose stop

To stop and remove the containers:

docker-compose down

If you want to use Turbo CLI:

# 1. Create only the DB with docker compose
docker-compose -f ./docker-compose-db.yml up

# 2. Run the web and API with turbo
turbo dev

Utilities

This Turborepo has some additional tools already setup for you: