Setting up a Local Development Environment¶
Prerequisites¶
- Any Linux distribution for the operating system.
- Docker installed on the local machine.
- Docker Compose installed on the local machine.
- Visual Studio Code for the editor (or any preferred editor).
Installation Steps¶
-
Open the terminal.
-
Create a directory:
-
Clone the minisass repository:
-
Navigate into the repository directory:
-
Open the directory with VSCode (assuming you have VSCode installed) or open the repository directory in any editor of your choice.
-
Optional: Adjust the build context of the S3 mount. In case of build failure, replace lines 32-36 in the
docker-compose.yml
file with the following: -
Build the container:
-
Start the containers:
-
Access the web application: Visit 'http://localhost:61122/'
Troubleshooting¶
Empty Page¶
This is likely to be caused by static files, follow these steps:
- Access the Django container:
- Navigate to the frontend directory:
- Install dependencies:
- Build the frontend:
- Navigate to the main directory:
- Execute the collect static command:
Other Issues¶
If you encounter any other issues, consider checking the logs, inspecting containers, and reviewing Docker Compose configurations. ```bash docker compose logs docker compose ps docker compose config