Skip to content

Commit

Permalink
[finishes #187612234] Update ReadMe to Check Pivotal Tracker (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerDATCH authored May 17, 2024
1 parent fa2f930 commit 8dc854a
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
# Team Ninjas Backend

This is the backend for E-Commerce-Ninjas, written in Node.js with TypeScript.

[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
[![Maintainability](https://api.codeclimate.com/v1/badges/839fc3fa18d25362cd8b/maintainability)](https://codeclimate.com/github/atlp-rwanda/e-commerce-ninjas-bn/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/839fc3fa18d25362cd8b/test_coverage)](https://codeclimate.com/github/atlp-rwanda/e-commerce-ninjas-bn/test_coverage)
[![Coverage Status](https://coveralls.io/repos/github/atlp-rwanda/e-commerce-ninjas-bn/badge.svg)](https://coveralls.io/github/atlp-rwanda/e-commerce-ninjas-bn)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/atlp-rwanda/e-commerce-ninjas-bn/tree/develop.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/atlp-rwanda/e-commerce-ninjas-bn/tree/develop)
[![codecov](https://codecov.io/gh/atlp-rwanda/e-commerce-ninjas-bn/graph/badge.svg?token=6ZWudFPM1S)](https://codecov.io/gh/atlp-rwanda/e-commerce-ninjas-bn)

## Description
## HOSTED SERVER URL

[https://e-commerce-ninjas-bn.onrender.com/](https://e-commerce-ninjas-bn.onrender.com/)

#### Hosted Swagger Documentation

[https://e-commerce-ninjas-bn.onrender.com/api-docs](https://e-commerce-ninjas-bn.onrender.com/api-docs)

#### Github Repository For E-Commerce-Ninjas Backend

[https://github.com/atlp-rwanda/e-commerce-ninjas-bn](https://github.com/atlp-rwanda/e-commerce-ninjas-bn)


## Completed Features

- Setup an empty express boilerplate with dotenv
- setup API documentation using swagger
- Integrate CircleCI, CodeClimate, Test coverage and HoundCI
- Link PivotalTracker with Github
- Setup unit testing

## TABLE OF API ENDPOINTS SPECIFICATION AND DESCRIPTION


| No | VERBS | ENDPOINTS | STATUS | ACCESS | DESCRIPTION |
|----|-------|-----------|--------|--------|-------------------- |
| 1 | GET | / | 200 OK | public | Show welcome message|


This is the backend for E-Commerce-Ninjas, written in Node.js with TypeScript.

## Installation

Expand All @@ -25,7 +53,7 @@ This is the backend for E-Commerce-Ninjas, written in Node.js with TypeScript.
npm install
```

3. Rename `.env.example` to `.env` and add values to all variables.
3. Copy `.env.example` to `.env` and add values to all variables.

4. Start the server:
```sh
Expand All @@ -48,35 +76,10 @@ This is the backend for E-Commerce-Ninjas, written in Node.js with TypeScript.
- `test/`: user test cases.
- `validation/`: user validation schemas.
- `routes/`: API routes.
- `utilities/`: Utility functions.
- `helpers/`: Utility functions.
- `validation/`: Validation schemas.
- `services/`: Service functions like sendEmails.
- `index.ts`: Startup file for all requests.

## Sequelize ORM

We used Sequelize ORM to connect to PostgreSQL database.

### Sample Codes

```javascript
const user = await User.create({ field: "value" });
```

```javascript
const users = await User.findAll();
```

### Run sample

1. Install dependencies

```bash
npm install
```

2. Run sample

```bash
npm start
```

0 comments on commit 8dc854a

Please sign in to comment.