Rajatgurung / GraphQl-boilerplate---fastify---JWT---MongoDB---graphql---TS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For Deploy locally πŸ±β€πŸ

  1. Download Dependency
npm install

or

npm ci
  1. Set up .env
//copy example.env to .env

cp example.env .env

///add config like below πŸ‘‡

JWT_SECRET=secret
MONGO_URL=mongodb://localhost:27017/picode

  1. Make assets directory
mkdir assets
  1. For testing environment copy example.env to testing.env and follow step 2

  2. Run test

npm run test
  1. Run Development
npm run dev

expose at port (http://localhost)[http://localhost:5000]


For Docker Deployment πŸ›³ πŸš€

docker-compose up

expose at port (http://localhost)[http://localhost]


url = http://localhost | http://localhost:5000

Graphql playground - {url}/graphiql

Graphql endpoint - {url}/graphql

Swagger Doc - {url}/doc


About


Languages

Language:TypeScript 98.9%Language:Dockerfile 1.1%Language:Shell 0.1%