# Setup Angular frontend application with backend side

**URL:** <https://forum.dfinity.org/t/setup-angular-frontend-application-with-backend-side/18372>\
**Category:** Developers\
**Tags:** dfx\
**Created:** [February 4, 2023, 10:19am UTC](https://forum.dfinity.org/t/setup-angular-frontend-application-with-backend-side/18372 "2023-02-04T10:19:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![looganxx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/looganxx/32/9294_2.png) [@looganxx](https://forum.dfinity.org/u/looganxx)\
**Post date:** [February 4, 2023, 10:19am UTC](https://forum.dfinity.org/t/setup-angular-frontend-application-with-backend-side/18372/1 "2023-02-04T10:19:22Z")

</div>

Hi everyone,  
I would like to create a dApp complete with frontend and backend, using Angular and Motoko.  
I started by creating the project with the command  
`dfx new project_name`  
`npm install`  
`dfx deploy`

All works fine also with `npm start`.

Now I have to do angular setup, so:  
`npm install -g @angular/cli`  
`cd src/`  
here I delete the current project frontend folder, then  
`ng new project_name_frontend` the same as the old one.  
running `ng serve` all works correctly.  
Now, I need to do `dfx deploy` wich does not work because it is looking for the index.js file into frontend folder. I create an empty index.js file in this folder.  
Then, I modify the `dfx.json` file like this. I share with you also the project structure.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/8/85c5bdfb2244d49d9cc4b225a0f45bce1bdb1b00.png)  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/b/bf4741403ed1b840041b5700deedf65142344d1d.png)

Using this configuration and running `dfx deploy` the result opening the canister is a white page.

I’m sure, I’m loosing some important steps. I can’t understand where.

I saw in previous forum questions, and can’t find hint.  
I also share my code [GitHub - looganxx/LandRegistry: Dfinity Project - deploy on Internet Computer Blockchain](https://github.com/looganxx/LandRegistry) on the branch features/setupAngular  
Thank you for your attention.

---

<div class="post-metadata">

**Author:** ![rbole](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/rbole/32/1334_2.png) [@rbole](https://forum.dfinity.org/u/rbole)\
**Post date:** [February 5, 2023, 8:09am UTC](https://forum.dfinity.org/t/setup-angular-frontend-application-with-backend-side/18372/2 "2023-02-05T08:09:39Z")

</div>

check out my repro, is a little bit outdated but should still work

> **[GitHub - samlinux/angularMeetsIc: This tutorial shows how you can use a...](https://github.com/samlinux/angularMeetsIc)**
>
> This tutorial shows how you can use a Motoko canister as the backend for an Angular project. - GitHub - samlinux/angularMeetsIc: This tutorial shows how you can use a Motoko canister as the backend...

by the way working on an updated version.

---

<div class="post-metadata">

**Author:** ![looganxx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/looganxx/32/9294_2.png) [@looganxx](https://forum.dfinity.org/u/looganxx)\
**Post date:** [February 5, 2023, 9:26am UTC](https://forum.dfinity.org/t/setup-angular-frontend-application-with-backend-side/18372/3 "2023-02-05T09:26:48Z")

</div>

I found it after a long search. After some hacks, it works. Thank you!

---

<div class="post-metadata">

**Author:** ![rabbithole](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/rabbithole/32/8138_2.png) [@rabbithole](https://forum.dfinity.org/u/rabbithole)\
**Post date:** [February 5, 2023, 9:30pm UTC](https://forum.dfinity.org/t/setup-angular-frontend-application-with-backend-side/18372/4 "2023-02-05T21:30:07Z")

</div>

Here’s [my project](https://github.com/faragly/motokobootcamp2023-coreproject) for Motoko Bootcamp 2023 I did 2 weeks ago. I used Angular 15, maybe you will find something interesting there
