Skip to content

FullStack Test - Lucas Bachega#3

Open
lucasbachega wants to merge 23 commits intohub-xp:mainfrom
lucasbachega:main
Open

FullStack Test - Lucas Bachega#3
lucasbachega wants to merge 23 commits intohub-xp:mainfrom
lucasbachega:main

Conversation

@lucasbachega
Copy link

What was done

  • Fullstack structure with NestJS (backend) and Next.js (frontend)

How to run tests

Make sure you have a .env file in backend/ with:

MONGO_URI=mongodb://localhost:27017/books-reviews

Then run:

cd backend
npm install
npm run test:e2e

How to run the app

Docker:
docker compose up --build -d
docker compose exec backend npm run seed

Manual

Backend:
cd backend
npm install
npm run start:dev
npm run seed

Frontend:
cd frontend
npm install
npm run dev

Add a .env.local file to frontend/ with:

NEXT_PUBLIC_API_URL=http://localhost:3001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant