Cyanoure 89ce218b1c
All checks were successful
Build and Save Artifact / build (push) Successful in 13s
Merge pull request 'Actions: Update build branch name' (#13) from dev into main
Reviewed-on: #13
2024-09-15 15:39:31 +00:00
2024-09-15 17:19:02 +02:00
2024-09-15 16:06:59 +02:00
2024-09-15 13:55:29 +02:00
2024-09-15 10:58:45 +00:00
2024-09-15 14:32:53 +02:00
2024-09-15 16:17:33 +02:00
2024-09-15 10:58:45 +00:00
2024-09-15 13:55:29 +02:00
2024-09-15 14:32:53 +02:00

NodeJS Project

This is a template project for NodeJS projects.

Setup

  • Clone the repository: git clone <repo_url>
  • Copy example.env to .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
No description provided
Readme 182 KiB
Languages
TypeScript 100%