GithubHelp home page GithubHelp logo

mininodetypescriptproject's Introduction

Test Fuerza

Technologies used

  • Node.js
  • TypeScript
  • Knex
  • Postgres
  • arrogance
  • Supertest

Setting up the project

Data base

** At the root of the project, we have the knexfile.ts file where the access settings are from our database, I used postgres to facilitate, passing the client and the login credentials **

Example:
development: {
    customer: 'pg',
    connection: {
        host: 'localhost',
        port: 5432,
        user: 'postgres',
        password: 'test',
        database: 'fuerza',
    },
    migrations: {
        tableName: 'knex_migrations',
        directory: path.resolve (__ dirname, 'src', 'database', 'migrations'),
    },
    seeds: {
        directory: path.resolve (__ dirname, 'src', 'database', 'seeds'),
    },
},

** Where we have **

host: Host of your database

port: the port your database is on

user: User of your database

password: your database password

database: The name of the database

Installing Project Dependencies

** On your terminal, type the command: **

npm install

** After all dependencies are installed, enter command **

npx knex migrate:latest

This command will create the tables in your database automatically, making migration through migration files located in ./src/database/knex_migrations

After all these steps, we will run our project

** With the command **

npm run start:dev

This command starts our local project

npm run test

Run our tests

Accessing the documentation route

/apiDocs

Our Swagger documentation

Some images

alt text

alt text

alt text

alt text

alt text

alt text

alt text

mininodetypescriptproject's People

Watchers

 avatar

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.