Front-end Config Files
Last updated
Was this helpful?
Last updated
Was this helpful?
All Javascript files are located in . The main file is . This file imports all javascript used in the application. If you want to create a new JS file consider creating in or , as follows:
js/lib
This folder contains all scripts usable for any page or as helpers to some component.
js/pages
This folder contains the scripts that are page-specific.
Redux
This project uses Redux to control the state in some pages. There are pages with real-time events that use Phoenix channels, e.g. Address page. The page state changes often depending on which events it is listening to. Redux is also used to load some contents asynchronously, see .
To understand how to build new pages that require Redux, see the file.