Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
This commit is contained in:
26
tools/citrineos-core-main/apps/Server/src/index.ts
Normal file
26
tools/citrineos-core-main/apps/Server/src/index.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { EventGroup, loadBootstrapConfig } from '@citrineos/base';
|
||||
import { CitrineOSServer } from './citrineOSServer.js';
|
||||
import { getSystemConfig } from './config/index.js';
|
||||
|
||||
async function main() {
|
||||
const bootstrapConfig = loadBootstrapConfig();
|
||||
const config = await getSystemConfig(bootstrapConfig);
|
||||
const server = new CitrineOSServer(
|
||||
process.env.APP_NAME?.toLowerCase() as EventGroup,
|
||||
bootstrapConfig,
|
||||
config,
|
||||
);
|
||||
server.run().catch((error: any) => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
console.error('Failed to initialize server:', error);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user