mirror of
https://github.com/janishutz/libreevent.git
synced 2026-03-14 07:00:05 +01:00
Revert "Restructuring for new way of installing libreevent"
This reverts commit 688b0616cc.
This commit is contained in:
3
src/server/backend/tickets/store/README.md
Normal file
3
src/server/backend/tickets/store/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ticket Store
|
||||
|
||||
Here, all the tickets for all the orders are saved. You may delete the tickets here at any point. Should the user request their tickets once again, the tickets can simply be regenerated from the data stored in the database.
|
||||
24
src/server/backend/tickets/test.js
Normal file
24
src/server/backend/tickets/test.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* libreevent - test.js
|
||||
*
|
||||
* Created by Janis Hutz 08/06/2023, Licensed under the GPL V3 License
|
||||
* https://janishutz.com, development@janishutz.com
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
const express = require( 'express' );
|
||||
let app = express();
|
||||
const ticket = require( './ticketGenerator.js' );
|
||||
const TicketGenerator = new ticket();
|
||||
const http = require( 'http' );
|
||||
|
||||
|
||||
app.get( '/', ( request, response ) => {
|
||||
response.send( 'ok' );
|
||||
TicketGenerator.generateTickets( { 'tok': 'hGids5PVsHm_KiK-Wd-8ekvwxpuUPrUX', 'email': 'info@janishutz.com' } );
|
||||
} );
|
||||
|
||||
|
||||
const PORT = process.env.PORT || 8080;
|
||||
http.createServer( app ).listen( PORT );
|
||||
233
src/server/backend/tickets/ticketGenerator.js
Normal file
233
src/server/backend/tickets/ticketGenerator.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user