Giter VIP home page Giter VIP logo

freelancer-shared's Introduction

Shared Library for FreelancerApp

  • The shared library contains codes that are used acrossed the microservices.
  • The idea behind this was to prevent code duplication.
  • The library is published as an npm package to github package registry.
  • You need to publish this shared library to github package registry to be able to use it.

Steps required to publish your package

  • Clone or download this repo
  • Open the project in a terminal and remove .git folder from the package
  • Execute git init command inside the project.
  • Create a personal access token on github.
  • Export the token locally with key NPM_TOKEN.
  • Keep the personal access token because it will be needed.
  • In your .npmrc file, add
@<your-github-username>:registry=https://npm.pkg.github.com/<your-github-username>
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
  • Replace <your-github-username> with your github username.
  • In your Package.json file, add the value to the following fields
    • name: @<your-github-username>/<your-library-name>
    • author: <your-name>
    • url: git+<shared-library-github-url>.git
  • You can update the dependencies and devDependencies.
  • In the .github/workflows folder, replace <your-github-username> inside the publish.yml with your own github username.
  • You can change the node-version to something higher.
  • Create your own github project for the package.
  • Push the code to github.
  • Once you push, a github actions build will be triggered. If no error, your package will be published.

Import

Whenever you make any change to the shared library folder, make sure to increment the version number inside Package.json file.

freelancer-shared's People

Contributors

datz0512 avatar

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.