|
| 1 | +# Perpustakaan Ar-Rasyid |
| 2 | +Aplikasi Perpustakaan Ar-Rasyid merupakan sistem yang berfungsi untuk pengolahan data perpustakaan dari stok buku - buku yang tersedia hingga anggota yang melakukan peminjaman dan pengembalian buku atau ebook yang dipinjam. |
| 3 | + |
| 4 | +# Usage |
| 5 | +* Install Node.js |
| 6 | +* Clone repository Perpustakaan Ar-Rasyid https://gitlab.com/team-gonata-indonesia/mobile-perpustakaan-ar-rasyid.git |
| 7 | +* Buka direktori Perpustakaan Ar-Rasyid di command prompt |
| 8 | +* Ketik npm start atau npm run dev |
| 9 | +* Otomatis terbuka localhost:8080 |
| 10 | + |
| 11 | +## Framework7 CLI Options |
| 12 | + |
| 13 | +Framework7 app created with following options: |
| 14 | + |
| 15 | +``` |
| 16 | +{ |
| 17 | + "cwd": "C:\\Users\\pavilion\\Documents\\ProjectSourceTree\\Perpustakaan Ar-Rasyid", |
| 18 | + "type": [ |
| 19 | + "web", |
| 20 | + "cordova" |
| 21 | + ], |
| 22 | + "name": "Perpustakaan Ar-Rasyid", |
| 23 | + "framework": "core", |
| 24 | + "template": "tabs", |
| 25 | + "bundler": "webpack", |
| 26 | + "cssPreProcessor": "stylus", |
| 27 | + "theming": { |
| 28 | + "customColor": false, |
| 29 | + "color": "#396EB0", |
| 30 | + "darkTheme": false, |
| 31 | + "iconFonts": true, |
| 32 | + "fillBars": false |
| 33 | + }, |
| 34 | + "customBuild": false, |
| 35 | + "webpack": { |
| 36 | + "developmentSourceMap": true, |
| 37 | + "productionSourceMap": true, |
| 38 | + "hashAssets": false, |
| 39 | + "preserveAssetsPaths": false, |
| 40 | + "inlineAssets": true |
| 41 | + }, |
| 42 | + "pkg": "io.framework7.myapp", |
| 43 | + "cordova": { |
| 44 | + "folder": "cordova", |
| 45 | + "platforms": [ |
| 46 | + "ios", |
| 47 | + "android" |
| 48 | + ], |
| 49 | + "plugins": [ |
| 50 | + "cordova-plugin-statusbar", |
| 51 | + "cordova-plugin-keyboard", |
| 52 | + "cordova-plugin-splashscreen" |
| 53 | + ] |
| 54 | + } |
| 55 | +} |
| 56 | +``` |
| 57 | + |
| 58 | +## NPM Scripts |
| 59 | + |
| 60 | +* 🔥 `start` - run development server |
| 61 | +* 🔧 `dev` - run development server |
| 62 | +* 🔧 `build-dev` - build web app using development mode (faster build without minification and optimization) |
| 63 | +* 🔧 `build-prod` - build web app for production |
| 64 | +* 📱 `build-dev-cordova` - build cordova app using development mode (faster build without minification and optimization) |
| 65 | +* 📱 `build-prod-cordova` - build cordova app |
| 66 | +* 📱 `build-dev-cordova-ios` - build cordova iOS app using development mode (faster build without minification and optimization) |
| 67 | +* 📱 `build-prod-cordova-ios` - build cordova iOS app |
| 68 | +* 📱 `build-dev-cordova-android` - build cordova Android app using development mode (faster build without minification and optimization) |
| 69 | +* 📱 `build-prod-cordova-android` - build cordova Android app |
| 70 | + |
| 71 | +## WebPack |
| 72 | + |
| 73 | +There is a webpack bundler setup. It compiles and bundles all "front-end" resources. You should work only with files located in `/src` folder. Webpack config located in `build/webpack.config.js`. |
| 74 | + |
| 75 | +Webpack has specific way of handling static assets (CSS files, images, audios). You can learn more about correct way of doing things on [official webpack documentation](https://webpack.js.org/guides/asset-management/). |
| 76 | +## Cordova |
| 77 | + |
| 78 | +Cordova project located in `cordova` folder. You shouldn't modify content of `cordova/www` folder. Its content will be correctly generated when you call `npm run cordova-build-prod`. |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +## Assets |
| 83 | + |
| 84 | +Assets (icons, splash screens) source images located in `assets-src` folder. To generate your own icons and splash screen images, you will need to replace all assets in this directory with your own images (pay attention to image size and format), and run the following command in the project directory: |
| 85 | + |
| 86 | +``` |
| 87 | +framework7 assets |
| 88 | +``` |
| 89 | + |
| 90 | +Or launch UI where you will be able to change icons and splash screens: |
| 91 | + |
| 92 | +``` |
| 93 | +framework7 assets --ui |
| 94 | +``` |
| 95 | + |
| 96 | +## Documentation & Resources |
| 97 | + |
| 98 | +* [Framework7 Core Documentation](https://framework7.io/docs/) |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +* [Framework7 Icons Reference](https://framework7.io/icons/) |
| 103 | +* [Community Forum](https://forum.framework7.io) |
| 104 | + |
| 105 | +## Support Framework7 |
| 106 | + |
| 107 | +Love Framework7? Support project by donating or pledging on patreon: |
| 108 | +https://patreon.com/vladimirkharlampidi |
| 109 | + |
| 110 | +## License |
| 111 | +MIT License 2022, Team Gonata Indonesia. |
| 112 | + |
| 113 | +The data may not be used for commercial purposes. |
0 commit comments