Skip to content

This is a bare simple Express API built with TypeScript. Feel free to use it as you want ! ๐Ÿ‘

License

Notifications You must be signed in to change notification settings

Meyclem/starter-express-ts-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

[starter] Express TypeScript API

This is a bare simple boilerplate. Feel free to clone it and use it as you want. You can also click on the Use this template button to create a new repo with the same structure.

In any case, feel free to use it as you want ๐Ÿ˜๐Ÿ‘

Dependencies

It comes with some packages pre-installed and configured:

Usage

Installation

The boilerplate uses node 22.13.1.

In case you don't have them install, you can

  • use asdf which will install the right version based on the .tool-versions file.
  • head to the nodejs website and install it manually.

Create a .env file at the root of the project with the following command:

cp -n .env.sample .env

Then install the dependencies:

npm install

Codebase

To understand how the code is structured, you can read the internals documentation.

Build the JS files

npm run build

Start the main file

## In local development mode
npm run dev

## In production mode
npm start

Linter

You can use eslint to help you format your code.

npm run lint

Tests

To run tests, you can use the following commands:

npm run test
## watch mode
npm run test:dev

About

This is a bare simple Express API built with TypeScript. Feel free to use it as you want ! ๐Ÿ‘

Topics

Resources

License

Stars

Watchers

Forks