Getting Started
This section explains the steps to set up your development environment and start the application.
Prerequisites
- Node.js:
The project includes a.nvmrcfile. We assume that you have nvm installed so that you can automatically use the correct Node version. - Docker & Docker Compose:
Ensure that Docker and Docker Compose are installed and properly configured. - Git LFS:
The project uses Git submodules with Git LFS. Make sure Git LFS is installed on your system. On macOS, you can install it using:brew install git-lfs
Step-by-Step Guide
-
Install Dependencies
Run the following command to install all required Node packages:
npm installThis step downloads all the dependencies needed for the project.
-
(Optional) Update Git Submodules
The project uses git submodules along with Git LFS. If you haven't updated them recently, run:
git submodule update --init --recursiveThis command will also fetch the Git LFS files automatically, provided Git LFS is installed. If you experience any issues, navigate to the respective submodule directory and run:
git lfs pull -
Start Docker Containers
Launch the Docker containers in detached mode:
docker compose up -dNote:
- The
docker-compose.ymlcurrently starts two services:- MongoDB
- Redis
- Initial passwords are set and will also appear in the
.env.development.localfile. - Volumes are created under
./datato persist local data. - Ports starting from 64000 are used to avoid conflicts with other projects.
- The
-
Configure Environment Variables
Copy the default environment variables to create a local configuration file:
cp .env.default .env.development.localThis file provides an out-of-the-box solution. You can modify the settings here during development as needed.
-
Start the Application
Launch the application with:
npm startThis will initialize the application, making it ready for use.
Troubleshooting Tips
(This section is currently empty as we have not encountered issues yet. Future updates will include detailed troubleshooting tips and solutions for common problems.)
Following these steps should allow you to successfully set up your development environment and start the application.