mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-08-14 20:42:53 +02:00
「🏗️」 wip: justfile change
This commit is contained in:
36
Justfile
36
Justfile
@ -1,21 +1,33 @@
|
|||||||
export FASTIFY_PRETTY_LOGS := "true"
|
@default:
|
||||||
export FASTIFY_PORT := "3001"
|
just -l
|
||||||
export FASTIFY_LOG_LEVEL := "info"
|
|
||||||
|
|
||||||
auth:
|
# For launching the authentification api
|
||||||
|
@auth $FASTIFY_LOG_LEVEL="info" $FASTIFY_PRETTY_LOGS="true":
|
||||||
fastify start src/api/auth/default.js
|
fastify start src/api/auth/default.js
|
||||||
|
# For launching the user data api
|
||||||
user:
|
@user $FASTIFY_LOG_LEVEL="info" $FASTIFY_PRETTY_LOGS="true":
|
||||||
fastify start src/api/user/default.js
|
fastify start src/api/user/default.js
|
||||||
|
|
||||||
apis:
|
# To launch all apis
|
||||||
|
@apis:
|
||||||
node src/dev.js
|
node src/dev.js
|
||||||
|
|
||||||
front:
|
# To launch the front end
|
||||||
|
@front:
|
||||||
vite
|
vite
|
||||||
|
# To build the front end
|
||||||
|
@build-front:
|
||||||
|
@vite build
|
||||||
|
|
||||||
front-build:
|
# To build the base of the for the fastify docker images
|
||||||
vite build
|
@build-node-base:
|
||||||
|
docker build -t node-base -f docker/node-base/Dockerfile .
|
||||||
|
|
||||||
front-preview:
|
@docker: build-node-base
|
||||||
vite preview
|
docker compose -f docker/docker-compose.yml up -d user-api --build
|
||||||
|
|
||||||
|
@clean-docker:
|
||||||
|
docker system prune -af
|
||||||
|
|
||||||
|
@clean-compose:
|
||||||
|
docker compose -f docker/docker-compose.yml rm
|
||||||
|
Reference in New Issue
Block a user