Source code to EasyMirror's frontend.
- Run the bash file found in build directory. This ensures the
.env
file is also passed in. - For a manual build, run:
$ docker build -t easymirror-platform-frontend:latest .
- Run the build bash file found in build directory. This ensures the
.env
file is also passed in. - For a manual build, run:
$ docker build --file Dockerfile.prod -t easymirror-platform-frontend:latest .
- The file structure was inspired by this WebDevSimplified article.
Folder | Description | Example |
---|---|---|
src/assets |
Contains everything that isn’t code related | images, css files, font files, etc |
src/components |
Contains subfolder(s) of general components that are used throughout the app | Checkbox Component |
src/layouts |
Folder for placing any layout based components | Navbar, Sidebar, etc |
src/lib |
Contains wrappers for the various different libraries you use in your project | Wrapping for fetch() calls |
src/pages |
Contains all pages, one file for each | A home page file |
src/services |
Contains all your code for interfacing with any external API. | File for collecting fingerprint data |
src/utils |
Contains all utility functions. | Formatters like converting string to type Date |
- The client (Front end) will store refresh token in an httponly cookie and access token in local storage.
- Display mirror link after successfully uploading file
- Fix Modal background color
- Display page for mirror host links
- Functionality to delete history
- Easier to way get domain name for dev/prod
- Mobile support (CSS)