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 -rf
npm install
Note: Before running this command you need to install the dev dependencies.
ncu -u
Note: Before running this command you need to install the dev dependencies.
npm run format
Note: Before running this command you need to install the dev dependencies.
npm run lint
ENVIRONMENT_MODE=development node dist/main.js
ENVIRONMENT_MODE=testing node dist/main.js
ENVIRONMENT_MODE=production node dist/main.js
Note: 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:latest
docker 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:latest
docker exec -it users_crud_api_typescript_app /bin/ash
docker kill users_crud_api_typescript_app
docker login -u joseesco24 -p < authentication token > ghcr.io
docker push ghcr.io/joseesco24/users_crud_api_typescript:latest
docker pull ghcr.io/joseesco24/users_crud_api_typescript:latest
Note: Before running any of these commands be sure that your CWD is users_crud_api_typescript directory.
docker-compose -f compose.build.yaml build
docker-compose -f compose.databases.yaml up
docker-compose -f compose.databases.yaml down
docker-compose -f compose.project.yaml up
docker-compose -f compose.project.yaml down