restructuring

This commit is contained in:
janis
2023-03-06 16:31:53 +01:00
parent ffc66602b3
commit d1e733e88e
25 changed files with 35 additions and 0 deletions

View File

2
src/apps/iOS/README.md Normal file
View File

@@ -0,0 +1,2 @@
# iOS - App
This app has the same functionality as the Android App.

View File

View File

50
src/server/app.js Normal file
View File

@@ -0,0 +1,50 @@
/*
* myevent - app.js
*
* Created by Janis Hutz 02/26/2023, Licensed under the GPL V3 License
* https://janishutz.com, development@janishutz.com
*
*
*/
const express = require( 'express' );
let app = express();
const path = require( 'path' );
const expressSession = require( 'express-session' );
const fs = require( 'fs' );
const bodyParser = require( 'body-parser' );
const cookieParser = require( 'cookie-parser' );
const favicon = require( 'serve-favicon' );
const http = require( 'http' );
const env = process.env.PROD || false;
const root = process.env.ROOT || '/order';
// initialise express with middlewares
app.use( expressSession( {
secret: 'gaoevgoawefgo083tq2rfvöfaf0p8',
resave: true,
saveUninitialized: true
} ) );
app.use( bodyParser.urlencoded( { extended: false } ) );
app.use( bodyParser.json() );
app.use( cookieParser() );
app.use( favicon( path.join( __dirname + '/ui/assets/logo.png' ) ) );
// create 404 handler
app.use( ( request, response ) => {
response.sendFile( path.join( __dirname + '' ) );
} );
if ( root !== '/' ) {
app.get( '/', ( request, response ) => {
} );
}
const PORT = process.env.PORT || 8080;
http.createServer( app ).listen( PORT );

View File

View File

3144
src/server/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

69
src/server/package.json Normal file
View File

@@ -0,0 +1,69 @@
{
"name": "myevent",
"version": "1.0.0",
"description": "Free & Open source event management solution",
"main": "app.js",
"directories": {
"doc": "docs"
},
"devDependencies": {
"acorn": "^8.8.2",
"buffer-from": "^1.1.2",
"camel-case": "^4.1.2",
"clean-css": "^5.3.2",
"commander": "^9.5.0",
"css-b64-images": "^0.2.5",
"debug": "^4.3.4",
"dot-case": "^3.0.4",
"entities": "^4.4.0",
"find-up": "^6.3.0",
"html-minifier-terser": "^7.1.0",
"jju": "^1.4.0",
"locate-path": "^7.2.0",
"lower-case": "^2.0.2",
"minify": "^9.2.0",
"ms": "^2.1.2",
"no-case": "^3.0.4",
"p-limit": "^4.0.0",
"p-locate": "^6.0.0",
"param-case": "^3.0.4",
"pascal-case": "^3.1.2",
"path-exists": "^5.0.0",
"readjson": "^2.2.2",
"relateurl": "^0.2.7",
"simport": "^1.2.0",
"source-map": "^0.6.1",
"source-map-support": "^0.5.21",
"terser": "^5.16.5",
"try-catch": "^3.0.1",
"try-to-catch": "^3.0.1",
"tslib": "^2.5.0",
"yocto-queue": "^1.0.0"
},
"dependencies": {
"bcrypt": "^5.1.0",
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"express": "^4.18.2",
"express-session": "^1.17.3",
"serve-favicon": "^2.5.0"
},
"scripts": {
"test": "test.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/simplePCBuilding/myevent.git"
},
"keywords": [
"event",
"management",
"solution"
],
"author": "Janis Hutz",
"license": "GPL-3.0-or-later",
"bugs": {
"url": "https://github.com/simplePCBuilding/myevent/issues"
},
"homepage": "https://github.com/simplePCBuilding/myevent#readme"
}

View File

View File

View File