- Download Dependency
npm install
or
npm ci
- 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
- Make assets directory
mkdir assets
-
For testing environment copy example.env to testing.env and follow step 2
-
Run test
npm run test
- Run Development
npm run dev
expose at port (http://localhost)[http://localhost:5000]
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