These variables are recommended for local development:
PORT="3001"
DATABASE_URL="postgres://user:password@host:port/name"
DATABASE_SSL=""
JWT_SECRET=""
JWT_SECRET_2=""
CLOUDINARY_URL="cloudinary://key:secret@name"
MAIL_FROM=""
SMTP_URL="smtp://user:password@host:port"
CHROME_WS="wss://url"
SENTRY_DSN_URL="https://url"
You should have Docker Desktop installed. Then you can use:
Creates docker image for this application.
Creates docker container with local PostgreSQL database. You can inspect database table entities with pgAdmin 4.
Runs previously created image in another docker container connected to the database.
This project use Schema-first approach.
TypeScript output is published as npm package https://www.npmjs.com/package/cv-graphql.
In the project directory, you can run:
Creates type definitions for GraphQL.
Runs the app in the development mode.
Open http://localhost:3001/api/graphql to access GraphQL playground.
Builds the app for production to the dist
folder.
Current production URL https://cv-project-js.inno.ws/api/graphql.
Application should be exposed on port 80 and 443.