A really simple CRUD GraphQL API based on Docker and TypeScript.
Note: In develop mode and running locally the docs are available at this url
Note: Before running any of these commands be sure that your CWD is users_crud_api_typescript directory.
RUN find . | grep -E "(/.spec.ts$|/.spec.js$)" | xargs rm -rfnpm installNote: Before running this command you need to install the dev dependencies.
ncu -uNote: Before running this command you need to install the dev dependencies.
npm run formatNote: Before running this command you need to install the dev dependencies.
npm run lintENVIRONMENT_MODE=development node dist/main.jsENVIRONMENT_MODE=testing node dist/main.jsENVIRONMENT_MODE=production node dist/main.jsNote: Before running any of these commands be sure that your CWD is users_crud_api_typescript directory.
docker build --no-cache --tag ghcr.io/joseesco24/users_crud_api_typescript:latest .docker build --tag ghcr.io/joseesco24/users_crud_api_typescript:latest .docker run --rm --name users_crud_api_typescript_app --publish 10046:10046 --env-file ./.env --env ENVIRONMENT_MODE=production ghcr.io/joseesco24/users_crud_api_typescript:latestdocker run --detach --rm --name users_crud_api_typescript_app --publish 10046:10046 --env-file ./.env --env ENVIRONMENT_MODE=production ghcr.io/joseesco24/users_crud_api_typescript:latestdocker exec -it users_crud_api_typescript_app /bin/ashdocker kill users_crud_api_typescript_appdocker login -u joseesco24 -p < authentication token > ghcr.iodocker push ghcr.io/joseesco24/users_crud_api_typescript:latestdocker pull ghcr.io/joseesco24/users_crud_api_typescript:latestNote: Before running any of these commands be sure that your CWD is users_crud_api_typescript directory.
docker-compose -f compose.build.yaml builddocker-compose -f compose.databases.yaml updocker-compose -f compose.databases.yaml downdocker-compose -f compose.project.yaml updocker-compose -f compose.project.yaml down