Initial Hero API Server Setup and Configuration - #26
Open
Jockstrap6334 wants to merge 8 commits into
Open
Conversation
Jockstrap6334
marked this pull request as ready for review
June 7, 2025 02:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial Hero API Server Setup and Configuration
Description
Task
Create initial server setup for hero API
Acceptance Criteria
Summary of Work
This pull request establishes the foundational server configuration for the Hero API, implementing a robust and flexible Express.js server with comprehensive middleware and error handling.
Key Changes:
Serverclass insrc/server.tsas the base for API configurationImplementation Details:
Server Configuration:
Middleware Setup:
express.json(): Parse incoming JSON payloadsexpress.urlencoded(): Handle URL-encoded form dataStartup Mechanism:
start()method to launch the servergetApp()method for potential test and extension scenariosNotes:
Changes Made
Tests
Signatures
Staking Key
DWBqahm2PaMoi28xYhwk66LkLYbZw7Df7AKb5hKRrBf: 7gsgWAfiLK2aLTtg78o8ffSiH9emJj6ovHKu5hU4x1JuXneYTGYayGKWbDma3Ljw11mpRYdepxLf5g5qVoJAA24k6La119ddHWdzMPrHg7BbqZQD3c2QyYnDGzNv4oybMKYvMVNGtDg2ZRgXWS7fQwWnnqqLxXNYqRTnwhSV9KBzbTSuDt7PaRwaZg3Eb7NH7UUJ1dGhzmWra4sFXyUDYQ1Fu2iReQMoNvmnVEYQSegtoWpFjxhbrFpvqy9j89c5Qvmn14tkhWJwhD8s557DheVasadGSaGQtKmLomApYPWWn1LJimoqwpgctZSq6frfLUwwhBkgCbfuVT7cbXJaShVuj2RJ3zR5rgMFuEpN2ptHS23WfFqUqP2PHtHVTdunoLcHt3Uww4YZoKCatv3tsRsKcGrmyhaYDwnQc
Public Key
2zjmVMjbiRMA7LSoefNKBMkhZyoK7hVpVz3xJU7m2NxW: 3NvssvN4EYRT8WneDsqC2Av1f1mhzjuiFUeoHrBjPm86qt1npZNnqUkXDMHjU2z1J8S2GakN2ivKU7myfq37oN4wYokuFvSGwzciRyBv9uN3xGojzULjhmnL7xaK7G8Y5M5mtzs5ZWtp4uaERgHac997hLyQsaqxHXwBa4R28uZt53YrvjHy8Ebv38F9DGQV6JZvuAsiVnTffMLiWh8Yq1paYNnACUjGsCqk4Eg1Q4woZWwb2Z7y5NuabVMZ7zyDQStgvPBf4NxKCb7DcKdTxXUds5wSVKbRLHqkHXNSohPTcqCQwrZ3KfscNBeaFaRb3YHBPrPmoqjtwpMQBcAoDPtAoFM87DPX4PSUUkQqwirLfJdzmy63mkziXkA3YJpbiAxxqBRtdEEVT6rAwGpej6EemJ9YzC7NFhzAp