Skip to content

[WIP] Setup Basic Express Server with Configurable Port#6

Draft
Vuk7912 wants to merge 8 commits intosouravg77:ac1b4def-e6b6-46ff-b94c-6aa773429112from
Vuk7912:express-server-basic-setup-1749669736
Draft

[WIP] Setup Basic Express Server with Configurable Port#6
Vuk7912 wants to merge 8 commits intosouravg77:ac1b4def-e6b6-46ff-b94c-6aa773429112from
Vuk7912:express-server-basic-setup-1749669736

Conversation

@Vuk7912
Copy link
Copy Markdown

@Vuk7912 Vuk7912 commented Jun 11, 2025

Setup Basic Express Server with Configurable Port

Description

Task

Implement basic Express server setup

Acceptance Criteria

  • Server starts successfully on a configurable port
  • Environment variable PORT can override default port
  • Server has basic error handling for startup issues
  • Logging of server start/stop events
  • Graceful shutdown mechanism implemented

Summary of Work

Initial implementation of the Express server foundation for our CDN file serving application. This PR establishes the core server structure with configurable port support, preparing the groundwork for subsequent feature implementations.

Changes Made

  • Create src/server.js as the main server entry point
  • Install Express.js and necessary initial dependencies
  • Implement basic Express application configuration
  • Add environment-based port configuration
  • Create basic server startup and shutdown mechanisms
  • Add initial error handling for server startup

Tests

  • Verify server can start successfully
  • Confirm port can be configured via environment variable
  • Test server graceful shutdown mechanism
  • Validate basic error handling during server initialization

Signatures

Staking Key

3oBzgQ4y8YtmkxYGkse1fKKefi25twpMKU9BBdsYtjDQ: 2nj6XgmrKtaLtyGSaztQuAhRAn4CG3Vf5tK8fST6Ge261HhGaqiuksXMBTimkmiv3TAXVxeMGPEZrYcSAHc7A1NRfhcpfnxEJzPC4ddmaftYAsTkMm6jEp8ppmonjhrfupNHpaq8PfW6iyHfbZ5TAoWiL38P9hs3A7g8wpuCqD7FWyPxbBSnx2YSGmckEqKQcFD1zuCQZTMiMNW6uhnxptMeyDjF4PzubGZ9XGuJCYosxMQi2oXpFcZYGett1PQRsS7DN7L5R1c2ySVPxV8ap1FfNHpU3KkJCsD1r3c1UtwmZ8WXMEnN6LQ2roiD8ruJTRL6nkA12fnQ9qajHosBMUDvfopuAoGM71gfZrJpErY2S8K4c98pv1mcQM5nMBwYvZdtQmF4RtHB7Rsg3GEQ1HeLL4Hx7qYQ

Public Key

4WA5vRJLthsg6sJqVc6DQuRkGzvoxZ11SkqzwbqxCo2V: 2i2aJoVMKgf24NoAPepWDQCipddK52jG32wFUGyuFeKLoHdY97E9EUywuWudfKfHg8Ts1mo11QxuAj9nax7yhfxQfYHYqzv98hbN9U21gJ1vT3w5vtvR79r7qrrHpFcEKSUm5raofZnRrXuKLwr6275bKedu4tJ9NdCCCS1hP1BZs7no7bC945fcmSFd6CLku62zxhMnS332VPBmSMQosB7LdwvP9dqgwFnT9rQxfPfBJ1CSHj2qa8a8Uu2FDUSqm28daf5Eoy1qowho2Vgt7rAZyqm4tGzo3igM5g7QTK9Eq1AotLh9tn1JTFcmYXx1rbf1fbftebVCPZ6Cwj439WQQRBqpL9H39tBma5TGCni75Q7QDvbdsQH6zgVbETUvjuiwvu43UjhCT4Gbvgkz1rtamhE6ao7J

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant