Git Product home page Git Product logo

git-node's Introduction

Hi there ๐Ÿ‘‹, my name is Lucas

French Developer.

Javascript Developer mostly, proefficient in modern stacks like : Bun / Node / SvelteKit / TypeScript, etc.

I enjoying learning new technologies and new stuffs ๐Ÿ‘จโ€๐Ÿ’ป


git-node's People

Contributors

spacelocust avatar yummyume avatar

Watchers

 avatar

git-node's Issues

Calling init twice resets all routes

Operating system

Ubuntu 22.04

Node Version

18.12.1 LTS

Bug description

When calling the init() function, all routes declared beforehand are erased. I would expect the package to throw an error instead.

import { init, createApiRoute } from '@Spacelocust/git-node';

init('git-node.conf.json');

createApiRoute('/login', callback(request, response));

// My route /login is available

init('git-node.conf.json');

// My route /login doesn't exist anymore

Steps to reproduce

  • Call init() twice.

Relevant log output

No route '/login' found.

Add routing system

The name of the feature

Routing system

Feature description

Add a routing system so we can handle routes.

Example :

import { createApiRoute } from '@Spacelocust/git-node';

createApiRoute(
    '/my-route, // Handle this, and call the callback given
    callback(request, response)
);

Additional information

Maybe store all the routes declared somewhere.

Feature(community): add general guidelines

The name of the feature

Add general guidelines to the project

Feature description

Add a proper README, CONTRIBUTING and CODE_OF_CONDUCT to the project. Possibly a CHANGELOG as well, although that could wait.

Additional information

No response

Linter on commit

The name of the feature

Run the linter on commits

Feature description

Use Husky to run the linter on every commit.

Additional information

Some tricks will be required for Husky to work with Docker (maybe volumes).

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.