Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 848 Bytes

README.md

File metadata and controls

57 lines (38 loc) · 848 Bytes

Virtual Makerspace

Development

Use Specific NodeJS Version

This can switch NodeJS version to v18.16.0(You should first have NodeJS v18.16.0 installed)

nvm use

Install the dependencies

This will install all dependencies for the app

pnpm install:all

Start React app(frontend)

pnpm frontend

This will run react app at port 3000

Start database

This will have postgres and adminer running for the backend

docker-compose up -d

Start Apollo Server(backend)

pnpm backend

This will run apollo graphql playground at port 5000

Test Prisma(backend)

cd backend
pnpm generate
pnpm migrate

you can then use adminer at port 8080, or run

pnpm studio

to open up prisma studio to check whether the data is properly saved