Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Update my-contacts.adoc #627

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions modules/developers-guide/pages/tutorials/my-contacts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ For example, copy and paste the following sample styles into the file:
include::example$mycontacts/mycontacts.css[]
----
. Save your changes and close the `+main.css+` file to continue.
. Rename the modified `+main.css+` file as `+mycontacts.css+` by running the following command:
+
[source,bash]
----
mv main.css mycontacts.css
----
. Change to the `+src/contacts_assets/src+` directory.
+
[source,bash]
Expand Down Expand Up @@ -278,20 +284,30 @@ To deploy canisters on the {platform}, you must specify that you are deploying t
----
dfx deploy --network=ic
----
. Start the Webpack development server:
+
[source,bash]
----
npm start
----

== View the front-end

You can now access the front-end for the `+contacts+` dapp.

To view the front-end:

. Open a browser and navigate to the `http://localhost:8080`.
. Find the front-end canister identifier. To do so, you can use the command `+dfx canister id <FRONT-END-CANISTER-NAME>+` where <FRONT-END-CANISTER-NAME> is the name of the canister used for the fron-end.
+
For example:
+
[source,bash]
----
dfx canister id contacts_assets
----
. Open a browser and navigate to `+http://localhost:8000/?canisterId=<FRONT-END-CANISTER-ID>+` where <FRONT-END-CANISTER-ID> is the front-end canister identifier you get in the previous step.
+
For example:
+
[source,bash]
----
http://localhost:8000/?canisterId=ryjl3-tyaaa-aaaaa-aaaba-cai
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
http://localhost:8000/?canisterId=ryjl3-tyaaa-aaaaa-aaaba-cai
open http://localhost:8000/?canisterId=ryjl3-tyaaa-aaaaa-aaaba-cai

----

. Verify that you are prompted with a **My Contacts** form.
+
For example:
Expand Down