To start the application, follow the steps below:
-
Pull the repository to your local machine.
-
Open a terminal and navigate to the project directory.
-
Run the following command to start the application and build the Docker containers:
docker compose up --build -d
-
Once the containers are up and running, access the application container by running the following command:
docker exec -it appCleanArchitecture bash
-
Now, you can execute the tests by running the following command inside the container:
npm test
By following these steps, you will be able to start the application, access the container, and run the tests successfully.
If you have recently started a container and find that VS Code is unable to detect the downloaded modules in the node_modules
folder, you can try enabling the "Enable Prompt Use Workspace Tsdk" option in the VS Code settings.
To do this, follow the steps below:
-
Open VS Code and navigate to the settings by clicking on the gear icon in the lower-left corner of the window.
-
In the settings menu, search for "Enable Prompt Use Workspace Tsdk" and click on the checkbox to enable it.
-
Save the changes and restart VS Code.
After enabling this option, VS Code should be able to detect the modules in the node_modules
folder and provide IntelliSense and other language services accordingly.
Please note that this option is specific to the workspace and needs to be enabled for each workspace individually.
If you continue to experience issues, make sure that the container is properly configured and the node_modules
folder is present in the correct location.