readme.md

January 12, 2022 · View on GitHub

Logo

JavaScript

NodeJS Typescript

✨About The Project

The propuse of this project is to create a beautiful backend (REST or GraphQL) that will be a simple example of how to develop a backend with NodeJS and driver connection databases.

The use for this project will depend on the use case:

  • For customize the integration project with CI environments (Heroku, AWS/GPC, etc).
  • For server a server done with MVC architecture.
  • Implementation of a simple API infraestructure (REST or GraphQL).

Note. This project is on https://thingst.herokuapp.com/

📦 Getting Started

⚡️ Scripts

ProcessScriptDescription
Initializationnpm run initConfigure environment for git hooks.
Developmentnpm run devServes to server on port 3000.
Testingnpm run testRun all test (unit test or integration).
Buildingnpm run buildBuild the code base to dist directory.
Productionnpm run startSimulate the server for production.

Note. For mode Production, you can use Heroku CLI to simulate the project witih heroku local.

⚙️ Configuration

Note. Thingst is already configured for git hooks and CI.

Husky is a tool that helps you to configure git hooks. Since the reason for use git hooks because each commit has the conventional commit structure.

Also, the Github Actions is a tool that helps you to run the tests and build the project.

Note. You can view this feature at .github/workflows direcotry

Author

Emmanuel Rodriguez - Full Stack Developer

Twitter GitHub Medium