Skip to content

lschvn/express-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Express Starter Kit

This is a simple Express.js starter kit using Bun and TypeScript.

Prerequisites

Make sure you have Bun installed.

Getting Started

  1. 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>
  2. Install dependencies:

    bun install
  3. Set up your environment variables: Create a .env file in the root of the project. You can copy .env.example if 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
  4. Run the development server:

    bun run index.ts

    The application should now be running, typically at http://localhost:3000 (or the APP_PORT you specified).

Project Structure

  • 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).

Contributing

Contributions are welcome! If you'd like to contribute, please:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature-name).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add some feature').
  5. Push to the branch (git push origin feature/your-feature-name).
  6. Create a new Pull Request.

Feel free to open an issue if you find a bug or have a suggestion.

License

This project is open-source and available under the MIT License (or specify your license if different).

About

Express backend template with typeorm, better auth, unjs storage, healthcheck and bun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors