Table of Contents
This is an e-commerce backend app
.
├── /build # Compiled files (ignored)
├── /docs # Documentation files
├── /src # Source files
├── /test # Automated tests
├── .env # Environment variables
├── .gitignore
├── nodemon.json # Configuration for nodemon as a dev-dependency
├── package.json
├── pnpm-lock.yaml
├── README.md # Documentation
└── tsconfig.json
./src
├── /controllers # Functions fired when hitting a route
├── /db
│ ├── /schemas # Schema definitions
│ └── config.ts # db connection configuration
├── /interfaces # For Ts declarations
├── /middleware
│ ├── /auth
│ └── /validation
├── /routes # All endpoints
├── /services # Communication with the db
├── app.ts # Configuration for required packages
└── server.ts # Entry point
This is the structure for any folder. The same applies for next folders.
./folder
├── index.ts # Handles all exports of that folder
└── file.ts # All its exports, but handled by its index.ts
Not yet live 🙂
To get a local copy up and running follow these simple steps.
- Node.js
- Package manager. We are using pnpm
- Postgres DB
If you are wondering why pnpm, take a look at why
- Clone the repo 🌀
git clone https://github.com/atlp-rwanda/Team-Axel-E-comm-backend.git
- Install packages 📦.
pnpm install
- Create a
.env
file and add the following keys ,or, just grab the content in.env.example
:PORT= DB_USER= DB_HOST= DB_NAME= DB_PASSWORD= DB_PORT=
- Start your local development server
pnpm dev
To make contributions...
- Clone the repo
- Create your Feature Branch (
git checkout -b ft-some-feature
) - Commit your Changes (
git commit -m 'ft: add some feature'
) - Push to the Branch (
git push origin ft-some-feature
) - Open a Pull Request
Distributed under the MIT License.
You can reach out to the team lead, Alex