@fresh08man/jim-lib v0.0.3
JimLib
This library was generated with Angular CLI version 8.2.14. It's a E-Commerce module including several components which combine with laravel RestAPI.
Install
- Fontend (Angular 8): Run
npm i @fresh08man/jim-lib --save
to install module. - Backend (Laravel 5.8): see labspace-upload-api
Build In Angular
- Install dependencies:
npm install --save sweetalert2 @sweetalert2/ngx-sweetalert2 moment angularx-social-login ngx-image-cropper @ckeditor/ckeditor5-angular ckeditor5-build-classic-all-plugin
ng add @angular/material
- Add environment variables in environment.ts
- APIUrl: YOUR SERVER DOMAINNAME (EX: http://127.0.0.1/ssl_project/public)
- APIUrlReg: YOUR SERVER DOMAINNAME REG (EX: ^http:\/\/127.0.0.1\/ssl_project)
- FBappId: Facebook login App ID (Only set when you have a vaild ID)
- GoogleAPIKey: Google login API Key (Only set when you have a vaild key)
- FileUrl: File server domain (EX: http://127.0.0.1/ssl_project/storage/app/public)
- Import module in app.module.ts
- import { JimLibModule } from '@fresh08man/jim-lib';
- import { environment } from '../environments/environment';
- Add
JimLibModule.forRoot(environment)
in @NgModule imports
Components
Here are components in JimLib you can use.
jim-datepicker: This is a datepicker reference by Angular Material.
jim-file-upload: You can upload file, video, image to the server. You must install laravel labspace-upload-api in your API backend server.
jim-social-login: You can login by facebook or google and get user info from server database. You must install laravel labspace-auth-api in your API backend server.
jim-image-crop: You can crop the image and upload it to server. You must install laravel labspace-upload-api in your API backend server.
jim-ckeditor5: ckeditor combine with ckfinder and image upload to the server.
Further help
To understand how to use these components go check out the fresh08man google doc for more detail.