Project Structure

Aliqua reprehenderit cillum minim magna reprehenderit deserunt esse. Adipisicing eu reprehenderit ea non tempor irure magna ex reprehenderit. Ex non reprehenderit aliquip Lorem nostrud et velit irure qui nulla deserunt.

Voluptate cupidatat in ullamco do qui qui cillum. Veniam amet eu esse eiusmod labore labore nisi duis Lorem. Elit qui culpa ullamco eiusmod ea occaecat. Ipsum nisi aute esse in nisi consequat aliqua fugiat amet in.


Directory structure

Package root

The base directory of a package

.
├── .env              # Remember to add this to your .gitignore
├── .env.example
├── package.json
├── src               # source files
├── test
└── tslint.json

Source files

In a clean install the files would be located at src/**.

In a monorepo install the files would be located at packages/PACKAGE_NAME/src/**.

├── config
│   ├── bindings.ts
│   ├── container.ts
│   ├── constants.ts
│   ├── env.ts
│   ├── interfaces.ts
│   ├── public.ts
│   └── registry.ts
├── domain                   # organise our folders by domain
│   ├── auth
│   └── users
├── entities
│   ├── User.ts
│   └── index.ts
├── lib                      # local libaries, eg. EmailService, SlackService
├── vendor                   # enhancements to @ensojs/vendor libs
│   ├── class-validator
│   ├── koa
│   └── typeorm
├── App.ts                   # declaration of your App (HTTP server)
└── server.ts                # instance of your HTTP server

Next

  • Learn how we manage Config in Enso.