/node_query_builder_orm

Project to show how to use an query builder or orm with node.

Primary LanguageJavaScriptMIT LicenseMIT

node_query_builder_orm

code style: prettier License: MIT

Project to show how to use an query builder or orm with node.

Prerequisites

You need to have node/npm and postgres instance to make the conncection.

Getting Started

Clone the project, install dependencies, set env variables and run with npm script.

To clone the project:

git clone https://github.com/wesdeveloper/node_query_builder_orm.git

Enter the project directory:

cd node_query_builder_orm

Install all dependencies:

npm install

Create a file .env based on .env.example, after that open .env file and set your corret values:

cp .env.example .env

Now you can start the server:

npm start

TESTS

To run tests just run npm test command:

npm test

Start Server

Tor start the server run:

npm run server

Built With

  • Express - Fast, unopinionated, minimalist web framework for Node.js

  • Joi - Object schema description language and validator for JavaScript objects.

Authors

  • Wesley Lopes - FullStack Developer NodeJs - weslopes

License

This project is licensed under the MIT License - see the LICENSE.md file for details