All checks were successful
Build and Save Artifact / build (push) Successful in 13s
Reviewed-on: #13
NodeJS Project
This is a template project for NodeJS projects.
Setup
- Clone the repository:
git clone <repo_url> - Copy
example.envto.env - Configure
.env - You're done
Start
- Run
docker compose up -d - Check if everything is working
- You're done
Run commands in container
If the container is running
docker compose exec nodejs <your_command>
If the container is not running
docker compose run --rm nodejs <your_command>
Other commands
Rebuild container
docker compose build
Init git submodules (if any)
git submodule update --init --recursive
Update git submodule
# Enter the submodule directory
cd <submodule_folder>
# Pull the other repo
git pull
# Go back to the root directory of the project
cd ..
# Check update
git status
# Commit update
git add <submodule_folder>
git commit -m "Submodule updated"
Update git submodule (other method)
git submodule update --remote --merge
Add git submodule
git submodule add <url>
# or
git submodule add <url> <path>
Remove git submodule
git submodule deinit -f <path>
git rm -f <path>
rm -rf .git/modules/<path>
Description
Languages
TypeScript
100%