Giter VIP home page Giter VIP logo

papi-starter's Introduction

Pointhub API Starter

Features

Services

Directory Structure

PAPI-STARTER
├── node_modules
├── src
│   ├── assets
│   ├── config
│   ├── console
│   ├── database
│   ├── modules
│   │   └── example
│   │       ├── controllers
│   │       ├── repositories
│   │       ├── rest
│   │       ├── use-cases
│   │       ├── validations
│   │       ├── entity.ts
│   │       ├── factory.ts
│   │       ├── interface.ts
│   │       ├── router.ts
│   │       ├── schema.ts
│   │       └── seed.ts
│   └── test
│       ├── setup.ts
│       └── utils.ts
├── .env.example
├── .env.test.example
├── .cli.ts
└── README.md

Contribution Guide


Database for development

Since transactions are built on concepts of logical sessions they require mechanics which are only available in a replica set environment.

Choose one of the options that you prefer

Installation

cp .env.example .env
cp .env.test.example .env.test
bun install --frozen-lock
bun run dev

Setup Database

Add Validation Schema

bun cli db:init

Seed Default Database

bun cli db:seed

Testing

Testing all test case

bun test

Testing specific file or folder

# Test specific file
bun test -- src/modules/example/controller/create.spec

# Test specific folder
bun test -- src/modules/example/controller

# Test example module
bun test -- src/modules/example

papi-starter's People

Contributors

martiendt avatar

Stargazers

Fei Zhang avatar

Watchers

 avatar Fei Zhang avatar

Forkers

goen94

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.