entry point
The first file or function that runs when a program starts.
In more detail
A program usually has one entry point, such as a Main method or a main file, and everything else is reached from there. Checks that must happen before anything else, such as validating configuration, belong at the entry point.
Examples
C#: Main, or generated from top-level statements in Program.csdist/index.js is the compiled entry point in the runner stage.Related terms
- top-level statements — C# code written directly at the top of Program.cs, without a class or Main method, from which the compiler generates the program's entry point.
- OutputType — The project property that says whether the build produces a runnable program (Exe) or a library (Library) for other projects to reference.
- environment variable — A named setting such as PORT=8000 that a program reads from its surroundings when it starts.
- CMD — The Dockerfile instruction that sets the default command a container runs when you do not give one.
- module — A file of code whose functions, classes and variables other files can use by importing it.
- package.json — The JSON file at the root of every JavaScript package that records its name, version, dependencies, entry points and other settings.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Records, Pattern Matching, and Modern C# — Modern .NET Core, C# & Enterprise Microservices
- Environment Configuration: Secrets & Multi-Stage — Production Full-Stack Engineering
- Containerization Architecture: Multi-Stage Dockerfiles — Production Full-Stack Engineering
- Native Module Systems: ESM Loader Hooks vs CommonJS — Node.js Internals & Backend Services
- Runtime Configuration: CLI Flags & Native --env-file — Node.js Internals & Backend Services