changed folder structure and added readme file
This commit is contained in:
1 parent
cbdffb21e3
commit
3bb0935db9
50 files changed
+6600
-3999
No files matched your search
@@ -0,0 +1 @@
|
||||
virtual-store-dir-max-length=70
|
||||
@@ -0,0 +1,37 @@
|
||||
# Stage 1: Build the Angular application
|
||||
FROM node:18.19.1-alpine AS build
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json to install dependencies
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application files
|
||||
COPY . .
|
||||
|
||||
ARG API_URL
|
||||
ARG TMDB_API_KEY
|
||||
RUN sed -i "s|%%API_URL%%|${API_URL}|g" src/environments/environment.prod.ts
|
||||
RUN sed -i "s|%%TMDB_API_KEY%%|${TMDB_API_KEY}|g" /src/environments/environment.prod.ts
|
||||
|
||||
# Build the Angular app with a custom base-href
|
||||
RUN npm run electron-build:ng
|
||||
|
||||
# Stage 2: Serve the Angular app with a lightweight web server
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copy the built Angular app from the build stage
|
||||
COPY --from=build /app/dist/showy/browser /usr/share/nginx/html
|
||||
|
||||
# Copy a custom Nginx configuration (optional, if needed)
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Expose the default Nginx HTTP port
|
||||
EXPOSE 80
|
||||
|
||||
# Start the Nginx server
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
@@ -0,0 +1,157 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"Showy": {
|
||||
"projectType": "application",
|
||||
"schematics": {},
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"prefix": "app",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:application",
|
||||
"options": {
|
||||
"outputPath": "dist/showy",
|
||||
"index": "src/index.html",
|
||||
"browser": "src/main.ts",
|
||||
"polyfills": ["zone.js"],
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"assets": ["src/favicon.ico", "src/assets"],
|
||||
"styles": [
|
||||
"src/styles.css",
|
||||
|
||||
"src/assets/css/bootstrap.min.css",
|
||||
"src/assets/css/bootstrap-extended.css",
|
||||
|
||||
"src/assets/plugins/bs-stepper/css/bs-stepper.css",
|
||||
"src/assets/plugins/metismenu/metisMenu.min.css",
|
||||
"src/assets/plugins/metismenu/mm-vertical.css",
|
||||
"src/assets/plugins/simplebar/css/simplebar.css",
|
||||
|
||||
"src/assets/sass/main.css",
|
||||
"src/assets/sass/main.scss",
|
||||
"src/assets/sass/semi-dark.css",
|
||||
"src/assets/sass/dark-theme.css",
|
||||
|
||||
"src/assets/sass/bordered-theme.css",
|
||||
|
||||
"node_modules/ngx-toastr/toastr.css",
|
||||
"node_modules/perfect-scrollbar/css/perfect-scrollbar.css",
|
||||
"node_modules/flatpickr/dist/flatpickr.min.css",
|
||||
"src/assets/sass/responsive.css",
|
||||
|
||||
"node_modules/primeng/resources/themes/saga-blue/theme.css",
|
||||
"node_modules/primeng/resources/primeng.min.css",
|
||||
"node_modules/primeicons/primeicons.css"
|
||||
],
|
||||
"scripts": [
|
||||
"src/assets/js/jquery.min.js",
|
||||
"src/assets/js/bootstrap.bundle.min.js",
|
||||
|
||||
"src/assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js",
|
||||
"src/assets/plugins/metismenu/metisMenu.min.js",
|
||||
"src/assets/plugins/apexchart/apexcharts.min.js",
|
||||
"src/assets/plugins/simplebar/js/simplebar.min.js",
|
||||
"src/assets/plugins/peity/jquery.peity.min.js",
|
||||
|
||||
"src/assets/plugins/select2/js/select2.min.js",
|
||||
"src/assets/plugins/select2/js/select2-custom.js",
|
||||
|
||||
"node_modules/flatpickr/dist/flatpickr.min.js",
|
||||
|
||||
"src/assets/js/index.js",
|
||||
"src/assets/js/main.js"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
],
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "5000kb",
|
||||
"maximumError": "5mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "5000kb",
|
||||
"maximumError": "5mb"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
},
|
||||
"development": {
|
||||
"optimization": false,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"buildTarget": "Showy:build:production"
|
||||
},
|
||||
"development": {
|
||||
"buildTarget": "Showy:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"buildTarget": "Showy:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"polyfills": ["zone.js", "zone.js/testing"],
|
||||
"tsConfig": "tsconfig.spec.json",
|
||||
"assets": ["src/favicon.ico", "src/assets"],
|
||||
"styles": [
|
||||
"src/styles.css",
|
||||
"src/assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css",
|
||||
"src/assets/plugins/metismenu/metisMenu.min.css",
|
||||
"src/assets/plugins/metismenu/mm-vertical.css",
|
||||
"src/assets/css/bootstrap.min.css",
|
||||
"src/assets/css/bootstrap-extended.css",
|
||||
"src/sass/main.css",
|
||||
"src/sass/dark-theme.css",
|
||||
"src/sass/semi-dark.css",
|
||||
"src/sass/bordered-theme.css",
|
||||
"src/sass/responsive.css",
|
||||
{
|
||||
"input": "node_modules/@fontsource/noto-sans/index.css"
|
||||
}
|
||||
],
|
||||
|
||||
"scripts": [
|
||||
"src/assets/js/jquery.min.js",
|
||||
"src/assets/js/bootstrap.bundle.min.js",
|
||||
"src/assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js",
|
||||
"src/assets/plugins/metismenu/metisMenu.min.js",
|
||||
"src/assets/plugins/apexchart/apexcharts.min.js",
|
||||
"src/assets/plugins/peity/jquery.peity.min.js",
|
||||
"src/assets/js/index.js",
|
||||
"src/assets/js/main.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
error_page 404 /index.html;
|
||||
}
|
||||
Generated
+13279
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"name": "showy_frontend",
|
||||
"author": "X4Lo",
|
||||
"description": "Movies & Tv-Series Tracking library",
|
||||
"version": "0.0.0",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"frontend": "ng serve",
|
||||
"Check Circular": "madge --circular --image circular-dependencies.png backend/server.js",
|
||||
"build-and-copy": "ng build --configuration production --base-href ./ && copyfiles backend/**/* dist/showy",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"electron-build:all": "ng build --configuration=production --base-href ./ && copyfiles backend/**/* dist/showy && electron . && electron-builder",
|
||||
"electron-build:ng": "ng build --configuration=production --base-href ./",
|
||||
"electron-build:copy": "copyfiles backend/**/* dist/showy",
|
||||
"electron-build:electron": "electron .",
|
||||
"electron-build:exe": "electron-builder",
|
||||
"prod-cp-BE": "copyfiles backend/**/* dist_electron/win-unpacked",
|
||||
"prod-cp-settings": "copyfiles settings.json dist_electron/win-unpacked/"
|
||||
},
|
||||
"portable": true,
|
||||
"singleInstance": false,
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^17.0.0",
|
||||
"@angular/cdk": "^17.3.3",
|
||||
"@angular/common": "^17.0.0",
|
||||
"@angular/compiler": "^17.0.0",
|
||||
"@angular/core": "^17.0.0",
|
||||
"@angular/forms": "^17.0.0",
|
||||
"@angular/material": "^17.0.0",
|
||||
"@angular/platform-browser": "^17.0.0",
|
||||
"@angular/platform-browser-dynamic": "^17.0.0",
|
||||
"@angular/router": "^17.0.0",
|
||||
"@fullcalendar/angular": "^6.1.15",
|
||||
"@fullcalendar/core": "^6.1.15",
|
||||
"@fullcalendar/daygrid": "^6.1.15",
|
||||
"@fullcalendar/interaction": "^6.1.15",
|
||||
"angular-star-rating": "^7.0.0",
|
||||
"apexcharts": "^3.49.0",
|
||||
"axios": "^1.6.8",
|
||||
"bootstrap": "^5.3.3",
|
||||
"date-fns": "^3.6.0",
|
||||
"flatpickr": "^4.6.13",
|
||||
"html2canvas": "^1.4.1",
|
||||
"ngx-bootstrap": "^12.0.0",
|
||||
"ngx-toastr": "^18.0.0",
|
||||
"optional": "^0.1.4",
|
||||
"perfect-scrollbar": "^1.5.5",
|
||||
"primeicons": "^7.0.0",
|
||||
"primeng": "^17.18.9",
|
||||
"rxjs": "~7.8.0",
|
||||
"tslib": "^2.3.0",
|
||||
"zone.js": "~0.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^17.0.7",
|
||||
"@angular/cli": "^17.0.7",
|
||||
"@angular/compiler-cli": "^17.0.0",
|
||||
"@types/jasmine": "~5.1.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"jasmine-core": "~5.1.0",
|
||||
"karma": "~6.4.0",
|
||||
"karma-chrome-launcher": "~3.2.0",
|
||||
"karma-coverage": "~2.2.0",
|
||||
"karma-jasmine": "~5.1.0",
|
||||
"karma-jasmine-html-reporter": "~2.1.0",
|
||||
"typescript": "~5.2.2"
|
||||
}
|
||||
}
|
||||
Generated
+11330
File diff suppressed because it is too large.
Load diff
@@ -1,4 +1,4 @@
|
||||
@import '../../node_modules/@angular/material/prebuilt-themes/indigo-pink.css';
|
||||
@import '../node_modules/@angular/material/prebuilt-themes/indigo-pink.css';
|
||||
|
||||
:root {
|
||||
/* SECTION - COLORS */
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./frontend/out-tsc/app",
|
||||
"types": []
|
||||
},
|
||||
"files": [
|
||||
"src/main.ts"
|
||||
],
|
||||
"include": [
|
||||
"src/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist/out-tsc",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"experimentalDecorators": true,
|
||||
"moduleResolution": "node",
|
||||
"importHelpers": true,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"useDefineForClassFields": false,
|
||||
"lib": [
|
||||
"ES2022",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
"strictInputAccessModifiers": true,
|
||||
"strictTemplates": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./frontend/out-tsc/spec",
|
||||
"types": [
|
||||
"jasmine"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"frontend/src/**/*.spec.ts",
|
||||
"frontend/src/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user