This is a simple Express.js starter kit using Bun and TypeScript.
Make sure you have Bun installed.
-
Clone the repository (or use it as a template):
# If you forked it or cloned it directly git clone <your-repository-url> cd <repository-name>
-
Install dependencies:
bun install
-
Set up your environment variables: Create a
.envfile in the root of the project. You can copy.env.exampleif one exists, or create it from scratch. It should typically include:APP_PORT=3000 DATABASE_HOST=localhost DATABASE_PORT=5432 DATABASE_USER=your_db_user DATABASE_PASSWORD=your_db_password DATABASE_NAME=your_db_name # Add any other environment variables your application needs
-
Run the development server:
bun run index.ts
The application should now be running, typically at
http://localhost:3000(or theAPP_PORTyou specified).
src/or/(root for this starter): Contains your main application code.index.ts: The main entry point of the application.
config/: Contains configuration files (e.g., database, auth, logger).migrations/: Contains database migration files (if using TypeORM or similar).public/: Static assets.package.json: Project metadata and dependencies.tsconfig.json: TypeScript configuration..env: Environment variables (ignored by Git).
Contributions are welcome! If you'd like to contribute, please:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin feature/your-feature-name). - Create a new Pull Request.
Feel free to open an issue if you find a bug or have a suggestion.
This project is open-source and available under the MIT License (or specify your license if different).