Git Product home page Git Product logo

config-builder's Introduction

๐Ÿ”ง Config Builder

Typescript Bun Docker

TS script that allow you to generate a configuration with credentials from a template and environment with Bun

๐Ÿ“ฆ Installation

You can use the script very easily with Docker or locally with bun directly.

Docker

  • Use docker command
docker build -t configbuilder .

or

  • Use package manager (npm / yarn / bun) work
npm run docker-build

Local

Install bun with the command:

curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL

If you are on windows, use npm:

npm install -g bun

๐Ÿ‘จโ€๐Ÿ’ป Usage

First, create a folder ./config where you will past all your configs.
Note that you are able to edit path & env name in index.ts.
The configuration file should look like this:

./config
โ”œโ”€โ”€ template
โ”‚   โ”œโ”€โ”€ test1.template.json
โ”‚   โ”œโ”€โ”€ subfolder
โ”‚   โ”‚   โ””โ”€โ”€ test2.template.json
โ”‚   โ””โ”€โ”€ test3.template.json
โ””โ”€โ”€ production

With docker you can execute:

docker run --rm -v `pwd`/config:/usr/src/app/config --env-file .env configbuilder

or

npm run start

With bun:

bun local

Made with โค๏ธ by TekMath

config-builder's People

Contributors

tekmath avatar

Stargazers

 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.