# How setting up and organizing ionic with require.js

**URL:** <https://forum.ionicframework.com/t/how-setting-up-and-organizing-ionic-with-require-js/45107>\
**Category:** uncategorized\
**Created:** [March 1, 2016, 2:06am UTC](https://forum.ionicframework.com/t/how-setting-up-and-organizing-ionic-with-require-js/45107 "2016-03-01T02:06:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PterPmnta](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@PterPmnta](https://forum.ionicframework.com/u/PterPmnta)\
**Post date:** [March 1, 2016, 2:06am UTC](https://forum.ionicframework.com/t/how-setting-up-and-organizing-ionic-with-require-js/45107/1 "2016-03-01T02:06:59Z")

</div>

I would like to know how to configure the dependencies placed in the default header to download using ionic npm , that order should wear and how to organize the new files to be added

structur folder

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/5/4/543ab2dff1e4520cc08d19648b403e42607c2f24.jpg)

Was set up but fails to organize the shim

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/c/0/c0f2ab8689cce401c4f3360abe626b4e40ad41a9.jpg)

is not whether routes are the folders that are wrong , but I think it’s wrong settings of the shim

`<script src="lib/require/require.js" data-main="lib/main">`
