rodrigo-fm / node-store

Rest API of a mock store made in node using Typescript, TDD, Clean Architecture and docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node store

Tools used

Use case diagram

Actors

  • Unauthenticated user: user that is not logged in.
  • User: user that is logged in.
  • Seller: user that can sell a product on the store.

Node store's use case diagram

Development workflow

The workflow is based on gitflow.

Creating a new feature

  • Create a new branch from the "develop" branch with the prefix feature/.
  • Develop the feature.
  • Push the feature into the remote repository.
  • Open a pull request from the feature/ branch to the "develop" branch.
  • After the review, if no errors are found, the branch is merged to the "develop" branch.

Creating a new release

  • After merging many features into the develop branch, create a new branch with the prefix release/
  • Merge the release/ branch with master.

The release/ branch should have it's version as a name, e.g: release/v0.1

Relational Database tables

Relational Database tables

How to run the docker image using docker compose

Inside the project's folder, run the following commands:

  1. Run docker-compose up -d
  2. Connect to the database using the credentials inside src/project/main/config/connection/connection-development.ts
  3. Run the seeding script inside src/project/main/config/database/mysql/seeding-development.sql

After that, the api will be ready to be tested at localhost:3000

About

Rest API of a mock store made in node using Typescript, TDD, Clean Architecture and docker.


Languages

Language:TypeScript 98.4%Language:Dockerfile 1.0%Language:Shell 0.3%Language:JavaScript 0.2%