Skip to content

Back-end server and GraphQL API module for Rocketseat's GoStack bonus project RentX.

License

Notifications You must be signed in to change notification settings

aadelgrossi/rentx-api

Repository files navigation

rentX (API)

GraphQL API/server module for rentX application.

Check the mobile app repo here.

Developed using

🔧 Install & config steps

$ git clone https://github.com/aadelgrossi/rentx-api.git

Rename .env.example to .env and u

$ mv .env.example .env

Update the environment variables to match your PG instance config (example is previously filled with defaults)

POSTGRES_USER=postgres  
POSTGRES_PASSWORD=postgres  
POSTGRES_DB=rentx  

DB_HOST=localhost
DB_PORT=5432
DB_SCHEMA=public

Install dependencies, generate Prisma client and build

$ yarn install

Run migrations

$ yarn prisma:migrate

Seed database (optional)

$ yarn seed

▶️ Start the server

$ yarn start:dev

GraphQL playground will be available at http://localhost:3333/graphql

License

MIT

About

Back-end server and GraphQL API module for Rocketseat's GoStack bonus project RentX.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published