Ear training application which focuses on functional training.
Make sure you have the following software installed before running the application:
- Node.js (v18.16.0 or later)
- npm (v9.5.1 or later)
- Clone the repository:
git clone https://github.com/aytarakdemir/earsavant.git
Navigate to the project directory:
cd earsavant
Install the dependencies:
npm install
- Build the project:
npm run build
- Start the development server:
npm start
The application will be accessible at http://localhost:4200.
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/my-feature
-
Make your changes and commit them.
-
Push the changes to your forked repository.
-
Create a pull request on the original repository.
Dockerfile.dev is provided for setting up development container using Docker.
To use the container for development, follow these steps:
-
Install Docker: Make sure you have Docker installed on your system. Refer to the official Docker documentation for instructions on how to install Docker for your operating system.
-
Build the Docker image: Open a terminal or command prompt and navigate to the directory where the Dockerfile is located. Run the following command to build the Docker image:
docker build -t earsavant -f Dockerfile.dev .
- Run the Docker container: Once the image is built, you can run the container using the following command:
docker run -dp 4200:4200 -v ${PWD}:/app/ earsavant
This command starts the Docker container in the background (-d option) and maps port 4200 from the host to port 4200 in the container (-p 4200:4200 option). It also mounts the current working directory (${PWD}) on the host to the /app/ directory inside the container (-v ${PWD}:/app/ option).
-
Access the application: After the container is running, you can access the application by opening a web browser and navigating to http://localhost:4200. Any changes you make to the project files on the host will be reflected in the running container due to the volume mount.
-
Development workflow: Use your preferred code editor or IDE on the host machine to edit the project files. The changes will be automatically synchronized with the running container, allowing you to see the updates in real-time. You can leverage the hot module replacement feature provided by Angular to enable live reloading of the application as you make changes.
To deploy the Angular app using Docker and Nginx, follow the steps below:
Docker must be installed on the deployment server.
-
Clone the repository to your deployment server.
-
Navigate to the root directory of the project.
-
Open the terminal and build the Docker image using the following command:
docker build -t earsavant .
Once the Docker image is built, you can run the container using the following command:
docker run -d -p 80:80 earsavant
The -d flag runs the container in detached mode, and -p 80:80 maps port 80 of the host to port 80 of the container. Modify the port mapping as needed.
The application should now be accessible at http://localhost:80.
This project is proprietary and all rights are reserved. Unauthorized copying or distribution of this project, or any portion of it, is strictly prohibited.
For inquiries and support, please contact aytar.akdemir@outlook.com