changed folder structure and added readme file
This commit is contained in:
1 parent
cbdffb21e3
commit
3bb0935db9
50 files changed
+6599
-3998
No files matched your search
@@ -2,3 +2,4 @@
|
||||
.git
|
||||
node_modules
|
||||
.editorconfig
|
||||
dist
|
||||
+5
-4
@@ -6,10 +6,11 @@ sequelize.log
|
||||
showy.log
|
||||
|
||||
# Compiled output
|
||||
.angular
|
||||
/rock
|
||||
/dist
|
||||
/dist_exe
|
||||
/dist_electron
|
||||
dist
|
||||
dist_exe
|
||||
dist_electron
|
||||
/uploads
|
||||
/tmp
|
||||
/out-tsc
|
||||
@@ -19,7 +20,7 @@ showy.log
|
||||
!/frontend/src/assets/images/logo3.png
|
||||
|
||||
# Node
|
||||
/node_modules
|
||||
node_modules
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
|
||||
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
FROM node:18.17.1-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npx ngcc --properties es2023 browser module main --first-only --create-ivy-entry-points
|
||||
COPY . .
|
||||
RUN npm run build-and-copy
|
||||
|
||||
FROM nginx:stable
|
||||
COPY --from=build /app/dist/showy/ /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
@@ -1 +1,117 @@
|
||||
# ShowY
|
||||
# test
|
||||
# Showy - Movies & Series Library Tracker
|
||||
|
||||
**Showy** is a comprehensive application designed to help you manage your movies and series library. Built with **Angular 17**, **Node.js**, **Express**, and **MySQL**, and optionally packaged with **Electron**, Showy allows you to track your watch progress, manage your watchlist, view upcoming releases on a calendar, and organize official and custom collections. The app also features a dashboard for quick insights into your library. The entire application is **dockerized** for easy setup and deployment.
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- **Library Management**:
|
||||
- Add movies and series to your library.
|
||||
- Track watch progress for movies and episodes.
|
||||
- Add movies and series to your watchlist.
|
||||
- **Calendar**:
|
||||
- View upcoming movies and episodes in a calendar view.
|
||||
- Never miss a release date for your favorite shows or movies.
|
||||
- **Collections**:
|
||||
- Browse official collections (e.g., Marvel Cinematic Universe, Harry Potter series).
|
||||
- Create and manage custom collections (e.g., "90s Classics", "Christmas Movies").
|
||||
- **Dashboard**:
|
||||
- Get an overview of your library stats.
|
||||
- View recently added movies/series, upcoming releases, and watch progress.
|
||||
- **Optional Desktop App**:
|
||||
- Use Showy as a desktop application with Electron for a seamless experience.
|
||||
- **Dockerized**:
|
||||
- Easy setup and deployment using Docker and Docker Compose.
|
||||
|
||||
---
|
||||
|
||||
## Technologies Used
|
||||
|
||||
- **Frontend**: Angular 17
|
||||
- **Backend**: Node.js, Express
|
||||
- **Database**: MySQL
|
||||
- **Optional Desktop Integration**: Electron
|
||||
- **Containerization**: Docker, Docker Compose
|
||||
|
||||
---
|
||||
|
||||
## Project Structure
|
||||
```
|
||||
showy/
|
||||
├── frontend/ # Angular 17 frontend
|
||||
│ ├── src/
|
||||
│ │ ├── app/ # Angular components, services, modules
|
||||
│ │ ├── assets/ # Static assets (images, styles)
|
||||
│ │ └── environments/ # Environment configurations
|
||||
│ ├── Dockerfile # Dockerfile for the frontend
|
||||
│ └── ...
|
||||
├── backend/ # Node.js + Express backend
|
||||
│ ├── config/ # Database and app configurations
|
||||
│ ├── controllers/ # API controllers
|
||||
│ ├── models/ # Database models
|
||||
│ ├── routes/ # API routes
|
||||
│ ├── Dockerfile # Dockerfile for the backend
|
||||
│ └── ...
|
||||
├── electron/ # Electron configuration (optional)
|
||||
├── docker-compose.yml # Docker Compose configuration
|
||||
└── README.md # This file
|
||||
```
|
||||
|
||||
---
|
||||
## Getting Started
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Docker
|
||||
- Docker Compose
|
||||
|
||||
### Installation
|
||||
|
||||
1. **Clone the repository**:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/your-username/showy.git
|
||||
cd showy
|
||||
```
|
||||
|
||||
2. **Set up environment variables**:
|
||||
- Create a `.env` file in the `backend` directory with the following variables:
|
||||
|
||||
```bash
|
||||
PORT=3000
|
||||
DB_HOST=mysql
|
||||
DB_USER=root
|
||||
DB_PASSWORD=yourpassword
|
||||
DB_NAME=showy
|
||||
```
|
||||
|
||||
1. **Build and run the application with Docker Compose**:
|
||||
|
||||
```bash
|
||||
docker-compose up --build
|
||||
```
|
||||
|
||||
4. **Access the app**:
|
||||
- Frontend: Open your browser and navigate to `http://localhost:4200`.
|
||||
- Backend API: Access the API at `http://localhost:3000`.
|
||||
5. **(Optional) Run the app with Electron**:
|
||||
- Follow the instructions in the `electron/README.md` to build and run the desktop app.
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
- Thanks to the Angular, Node.js, and Express communities for their amazing tools and libraries.
|
||||
- Special thanks to (mention any libraries or tools you used, e.g., TMDB API for movie data).
|
||||
|
||||
---
|
||||
|
||||
## Contact
|
||||
|
||||
For questions or feedback, feel free to reach out:
|
||||
- **Mohammed Abad**: [mohammedabad.me@gmail.com](mailto:mohammedabad.me@gmail.com)
|
||||
- **GitHub**: [X4Lo](https://github.com/X4Lo)
|
||||
|
||||
---
|
||||
|
||||
Enjoy managing your movies and series with **Showy**! 🎬🍿
|
||||
-157
@@ -1,157 +0,0 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"Showy": {
|
||||
"projectType": "application",
|
||||
"schematics": {},
|
||||
"root": "",
|
||||
"sourceRoot": "frontend/src",
|
||||
"prefix": "app",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:application",
|
||||
"options": {
|
||||
"outputPath": "dist/showy",
|
||||
"index": "frontend/src/index.html",
|
||||
"browser": "frontend/src/main.ts",
|
||||
"polyfills": ["zone.js"],
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"assets": ["frontend/src/favicon.ico", "frontend/src/assets"],
|
||||
"styles": [
|
||||
"frontend/src/styles.css",
|
||||
|
||||
"frontend/src/assets/css/bootstrap.min.css",
|
||||
"frontend/src/assets/css/bootstrap-extended.css",
|
||||
|
||||
"frontend/src/assets/plugins/bs-stepper/css/bs-stepper.css",
|
||||
"frontend/src/assets/plugins/metismenu/metisMenu.min.css",
|
||||
"frontend/src/assets/plugins/metismenu/mm-vertical.css",
|
||||
"frontend/src/assets/plugins/simplebar/css/simplebar.css",
|
||||
|
||||
"frontend/src/assets/sass/main.css",
|
||||
"frontend/src/assets/sass/main.scss",
|
||||
"frontend/src/assets/sass/semi-dark.css",
|
||||
"frontend/src/assets/sass/dark-theme.css",
|
||||
|
||||
"frontend/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",
|
||||
"frontend/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": [
|
||||
"frontend/src/assets/js/jquery.min.js",
|
||||
"frontend/src/assets/js/bootstrap.bundle.min.js",
|
||||
|
||||
"frontend/src/assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js",
|
||||
"frontend/src/assets/plugins/metismenu/metisMenu.min.js",
|
||||
"frontend/src/assets/plugins/apexchart/apexcharts.min.js",
|
||||
"frontend/src/assets/plugins/simplebar/js/simplebar.min.js",
|
||||
"frontend/src/assets/plugins/peity/jquery.peity.min.js",
|
||||
|
||||
"frontend/src/assets/plugins/select2/js/select2.min.js",
|
||||
"frontend/src/assets/plugins/select2/js/select2-custom.js",
|
||||
|
||||
"node_modules/flatpickr/dist/flatpickr.min.js",
|
||||
|
||||
"frontend/src/assets/js/index.js",
|
||||
"frontend/src/assets/js/main.js"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "frontend/src/environments/environment.ts",
|
||||
"with": "frontend/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": [
|
||||
"frontend/src/styles.css",
|
||||
"frontend/src/assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css",
|
||||
"frontend/src/assets/plugins/metismenu/metisMenu.min.css",
|
||||
"frontend/src/assets/plugins/metismenu/mm-vertical.css",
|
||||
"frontend/src/assets/css/bootstrap.min.css",
|
||||
"frontend/src/assets/css/bootstrap-extended.css",
|
||||
"frontend/src/sass/main.css",
|
||||
"frontend/src/sass/dark-theme.css",
|
||||
"frontend/src/sass/semi-dark.css",
|
||||
"frontend/src/sass/bordered-theme.css",
|
||||
"frontend/src/sass/responsive.css",
|
||||
{
|
||||
"input": "node_modules/@fontsource/noto-sans/index.css"
|
||||
}
|
||||
],
|
||||
|
||||
"scripts": [
|
||||
"frontend/src/assets/js/jquery.min.js",
|
||||
"frontend/src/assets/js/bootstrap.bundle.min.js",
|
||||
"frontend/src/assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js",
|
||||
"frontend/src/assets/plugins/metismenu/metisMenu.min.js",
|
||||
"frontend/src/assets/plugins/apexchart/apexcharts.min.js",
|
||||
"frontend/src/assets/plugins/peity/jquery.peity.min.js",
|
||||
"src/assets/js/index.js",
|
||||
"frontend/src/assets/js/main.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm i
|
||||
|
||||
# Copy the rest of the application files
|
||||
COPY backend/* .
|
||||
|
||||
# Expose the port your backend uses
|
||||
EXPOSE 4000
|
||||
|
||||
# Start the application
|
||||
CMD ["node", "server.js"]
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const Collection = sequelize.define("userCollection",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const Entry = sequelize.define("entry",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const EntryGenre = sequelize.define('entryGenre',
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const EntryId = sequelize.define("entryId",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
|
||||
const EntryRating = sequelize.define("entryRating",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
|
||||
const EntrySeen = sequelize.define("entrySeen",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const Episode = sequelize.define("episode",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
|
||||
const EpisodeSeen = sequelize.define("episodeSeen",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const Franchise = sequelize.define("franchise",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const Genre = sequelize.define("genre",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes, Sequelize } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const Media = sequelize.define("media",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const Season = sequelize.define("season",
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
const UserCollectionEntry = sequelize.define('userCollectionEntry',
|
||||
{
|
||||
|
||||
File renamed without changes.
Generated
+1566
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "showy_backend",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"backend": "nodemon server.js --trace-warnings",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.9",
|
||||
"body-parser": "^1.20.3",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"multer": "^1.4.5-lts.1",
|
||||
"mysql2": "^3.12.0",
|
||||
"nodemon": "^3.1.9",
|
||||
"optional": "^0.1.4",
|
||||
"sequelize": "^6.37.5",
|
||||
"sharp": "^0.33.5",
|
||||
"uuid": "^11.0.5"
|
||||
}
|
||||
}
|
||||
Generated
+1548
File diff suppressed because it is too large.
Load diff
@@ -1,7 +1,7 @@
|
||||
const express = require('express');
|
||||
const EntrySeen = require('../models/EntrySeen');
|
||||
const Entry = require('../models/Entry');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
const { Op } = require('sequelize');
|
||||
const entrySeenRouter = express.Router();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ const express = require('express');
|
||||
const Episode = require('../models/Episode');
|
||||
const EpisodeSeen = require('../models/EpisodeSeen');
|
||||
const Season = require('../models/Season');
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
const { Op } = require('sequelize');
|
||||
const Entry = require('../models/Entry');
|
||||
const episodeSeenRouter = express.Router();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const express = require('express');
|
||||
const statisticsRouter = express.Router();
|
||||
const sequelize = require('../db/database');
|
||||
const sequelize = require('../config/database');
|
||||
const { Op } = require('sequelize');
|
||||
const EpisodeSeen = require('../models/EpisodeSeen');
|
||||
const EntrySeen = require('../models/EntrySeen');
|
||||
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
const express = require('express');
|
||||
const bodyParser = require('body-parser');
|
||||
const routes = require('./routes/routes.js');
|
||||
const sequelize = require('./db/database.js');
|
||||
const sequelize = require('./config/database.js');
|
||||
|
||||
const app = express();
|
||||
|
||||
const relations = require('./db/relations.js');
|
||||
const sequelizeHooks = require('./db/sequelizeHooks.js');
|
||||
const { initializeData } = require('./db/dataInitializer.js');
|
||||
const relations = require('./config/relations.js');
|
||||
const sequelizeHooks = require('./config/sequelizeHooks.js');
|
||||
const { initializeData } = require('./config/dataInitializer.js');
|
||||
const killerRouter = require('./routes/killer.routes.js');
|
||||
const errorHandler = require('./middleware/errorHandler');
|
||||
const configService = require('./services/configService.js');
|
||||
|
||||
@@ -25,7 +25,7 @@ class ConfigService {
|
||||
}
|
||||
|
||||
getUserDataPath() {
|
||||
return path.join(__dirname, '..', '..');
|
||||
return path.join(__dirname, "..");
|
||||
}
|
||||
|
||||
getSettingsFilePath() {
|
||||
|
||||
+43
-14
@@ -1,15 +1,44 @@
|
||||
services:
|
||||
showy:
|
||||
container_name: showycontainer
|
||||
build: .
|
||||
image: showy:latest
|
||||
ports:
|
||||
- 80:80
|
||||
expose:
|
||||
- 80
|
||||
networks:
|
||||
- internalnet
|
||||
version: '3.9'
|
||||
|
||||
networks:
|
||||
internalnet:
|
||||
driver: bridge
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
API_URL: http://localhost:4000/api/v1
|
||||
TMDB_API_KEY: 5323ef3dc430df54dcb9e58c37fd22bb
|
||||
ports:
|
||||
- "3000:80"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: backend/Dockerfile
|
||||
environment:
|
||||
MYSQL_HOST: mysql
|
||||
MYSQL_DB: Showzy
|
||||
MYSQL_USER: root
|
||||
MYSQL_PASSWORD: password
|
||||
ports:
|
||||
- "4000:4000"
|
||||
depends_on:
|
||||
- mysql
|
||||
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
container_name: mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootpassword
|
||||
MYSQL_DATABASE: mydatabase
|
||||
MYSQL_USER: myuser
|
||||
MYSQL_PASSWORD: mypassword
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "showy_electron",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"electron": "electron .",
|
||||
"build-front": "ng build --configuration=production --base-href ./",
|
||||
"copy-front": "",
|
||||
"copy-back": "copyfiles backend/**/* dist/showy",
|
||||
"generate-exe": "electron-builder"
|
||||
},
|
||||
"build": {
|
||||
"appId": "xalo.showy",
|
||||
"productName": "Showy",
|
||||
"win": {
|
||||
"target": [
|
||||
{
|
||||
"target": "dir",
|
||||
"arch": [
|
||||
"x64"
|
||||
]
|
||||
}
|
||||
],
|
||||
"icon": "src/assets/images/showy.ico"
|
||||
},
|
||||
"directories": {
|
||||
"output": "dist"
|
||||
}
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"copyfiles": "^2.4.1",
|
||||
"electron": "^34.0.1",
|
||||
"electron-builder": "^25.1.8"
|
||||
}
|
||||
}
|
||||
Generated
+2901
File diff suppressed because it is too large.
Load diff
File renamed without changes.
@@ -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;
|
||||
}
|
||||
+100
-3753
File diff suppressed because it is too large.
Load diff
@@ -1,12 +1,11 @@
|
||||
{
|
||||
"name": "showy",
|
||||
"name": "showy_frontend",
|
||||
"author": "X4Lo",
|
||||
"description": "Movies & Tv-Series Tracking library",
|
||||
"version": "0.0.0",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"Backend": "nodemon backend/server.js --trace-warnings",
|
||||
"Frontend": "ng serve",
|
||||
"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",
|
||||
@@ -18,25 +17,6 @@
|
||||
"prod-cp-BE": "copyfiles backend/**/* dist_electron/win-unpacked",
|
||||
"prod-cp-settings": "copyfiles settings.json dist_electron/win-unpacked/"
|
||||
},
|
||||
"build": {
|
||||
"appId": "xalo.showy",
|
||||
"productName": "Showy",
|
||||
"win": {
|
||||
"target": [
|
||||
{
|
||||
"target": "dir",
|
||||
"arch": [
|
||||
"x64",
|
||||
"ia32"
|
||||
]
|
||||
}
|
||||
],
|
||||
"icon": "frontend/src/assets/images/showy.ico"
|
||||
},
|
||||
"directories": {
|
||||
"output": "dist_electron"
|
||||
}
|
||||
},
|
||||
"portable": true,
|
||||
"singleInstance": false,
|
||||
"private": true,
|
||||
@@ -58,26 +38,18 @@
|
||||
"angular-star-rating": "^7.0.0",
|
||||
"apexcharts": "^3.49.0",
|
||||
"axios": "^1.6.8",
|
||||
"body-parser": "^1.20.3",
|
||||
"bootstrap": "^5.3.3",
|
||||
"date-fns": "^3.6.0",
|
||||
"express": "^4.19.2",
|
||||
"flatpickr": "^4.6.13",
|
||||
"html2canvas": "^1.4.1",
|
||||
"multer": "^1.4.5-lts.1",
|
||||
"mysql2": "^3.9.3",
|
||||
"ngx-bootstrap": "^12.0.0",
|
||||
"ngx-toastr": "^18.0.0",
|
||||
"optional": "^0.1.4",
|
||||
"p-limit": "^6.1.0",
|
||||
"perfect-scrollbar": "^1.5.5",
|
||||
"primeicons": "^7.0.0",
|
||||
"primeng": "^17.18.9",
|
||||
"rxjs": "~7.8.0",
|
||||
"sequelize": "^6.37.1",
|
||||
"sharp": "^0.33.5",
|
||||
"tslib": "^2.3.0",
|
||||
"uuid": "^10.0.0",
|
||||
"zone.js": "~0.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -86,16 +58,12 @@
|
||||
"@angular/compiler-cli": "^17.0.0",
|
||||
"@types/jasmine": "~5.1.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"copyfiles": "^2.4.1",
|
||||
"electron": "^29.1.5",
|
||||
"electron-builder": "^24.13.3",
|
||||
"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",
|
||||
"nodemon": "^3.1.0",
|
||||
"typescript": "~5.2.2"
|
||||
}
|
||||
}
|
||||
File renamed without changes.
@@ -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 */
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"types": []
|
||||
},
|
||||
"files": [
|
||||
"frontend/src/main.ts"
|
||||
"src/main.ts"
|
||||
],
|
||||
"include": [
|
||||
"frontend/src/**/*.d.ts"
|
||||
"src/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user