piech.dev

Back to Projects github.com/tenemo/expressplate

expressplate

An Express.js REST API opinionated boilerplate designed for building scalable and maintainable web applications. Pre-configured environment with TypeScript, Express.js, and great VS Code integration.

Features

Core technologies

Logging

Code quality

Testing

Getting started

To get started with expressplate, clone the repository and install dependencies:

git clone https://github.com/Tenemo/expressplate.git
cd expressplate
npm install

Configuration

```bash
cp .env.sample .env
```

Create the .env file in the root directory and adjust the variables as needed.

Development

To start the development server with nodemon:

npm run dev

Build

To compile TypeScript to JavaScript and build the project for production:

npm run build

Deployment

Deploy the built application by starting the server with:

npm start

This will run the compiled JavaScript code from the dist directory.

Running tests

To run tests using Vitest:

npm test

Code quality

Lint your code and fix formatting issues:

npm run lint:fix

API Routes

Logging

Logs are configured to rotate daily with separate files for combined logs and error logs. Check the logs directory for:

License

This project is licensed under the MIT License.