You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Frontend project that allows you to manage simple tasks by storing information i
12
12
|Android Studio |`21.0.4`|
13
13
|Java JDK |`20`|
14
14
|Gradle |`9.0.0`|
15
+
|Docker ||
15
16
16
17
## Important note
17
18
@@ -25,7 +26,7 @@ To run the frontend project, follow these steps:
25
26
26
27
- After cloning the repository, install the node dependencies using the command `npm install` inside the `ionic-sqlite-tasks` project folder. If an error occurs, add the --force option.
27
28
28
-
- Run the command `ng serve` to start the server. By default, the url `http://localhost:8100` is used.
29
+
- Run the command `ionic serve` to start the server. By default, the url `http://localhost:8100` is used.
29
30
30
31
- In the browser, you can emulate how it would look on a mobile phone, but in this case, the database would not work, as it is a native dependency. That is why local storage is used in this test to perform tests from a PC.
31
32
@@ -47,4 +48,20 @@ Verify that the mobile phone connected via USB is recognized as a device by runn
47
48
48
49
- If there is only one device connected in the list above, you can run the command `ionic cordova run android --device`. But if there is more than one device connected, run the command `ionic cordova run android --target=<device_id>`. <device_id> is the ID generated in the list in the previous point. If an error occurs, use the **--verbose** option at the end of the command to display detailed information about the execution, the error, and its cause.
49
50
50
-
- When you run the above command, the application will be compiled and installed on your mobile phone, eliminating the need to compile the project, find the apk file, and transfer it to your mobile phone to install the application. When you install the application for the first time, you will be asked to authorize the installation of the application on your mobile phone. You must select the OK button each time it is displayed for installation.
51
+
- When you run the above command, the application will be compiled and installed on your mobile phone, eliminating the need to compile the project, find the apk file, and transfer it to your mobile phone to install the application. When you install the application for the first time, you will be asked to authorize the installation of the application on your mobile phone. You must select the OK button each time it is displayed for installation.
52
+
53
+
## Docker Instructions
54
+
55
+
To run the frontend project in a Docker container, follow these steps:
56
+
57
+
- Clone the project, either with the command git clone `https://github.com/dev-shelvin-batista/ionic-sqlite-tasks.git` or using a GitHub graphical tool.
58
+
59
+
- Access the folder in a command terminal using the cd command.
60
+
61
+
- The project already has a Dockerfile that generates the image to create the container. Just create the image with the `docker build -t ionic-sqlite-tasks .` command.
62
+
63
+
- Create the container from the image created by running the `docker run --rm -p 8100:8100 ionic-sqlite-tasks` command.
64
+
65
+
- After running the above command, the container will be active and you will be able to access the frontend project from the host with the URL `http://localhost:8100/`.
66
+
67
+
- You can change the port to be used on the host by modifying the port in the **docker run** command in the **-p** option.
0 commit comments