Git Product home page Git Product logo

flagsy-api's Introduction

Flagsy API

This repo hosts the code for the Flagsy API. Flagsy is a simple and user-friendly feature flag management application. UI is build using Angular, more details here: https://github.com/adisreyaj/flagsy

Stack

Installation

  1. Clone the repo
  2. Run npm install
  3. Create a .env file and add the following:
NODE_ENV=development

PORT=3000

DATABASE_URL=mysql://root:password@localhost:3306/flagsy

JWT_SECRET=secret
COOKIE_SECRET=secret


# For Grafana Loki
LOKI_URL=https://<instance>.grafana.net
LOKI_USERNAME=<username>
LOKI_TOKEN=<token>

  1. Ready the database
prisma:migrate:dev
  1. Start the application
npm run dev

Features

  • Cors support
  • Authentication (Cookie based)
  • Authorization
  • RBAC with roles and permissions
  • Zod for schema validation
  • Grafana Loki for logging

Routes

  • /auth - Authentication routes
  • /users - User routes
  • /projects - Project routes
  • /environments - Environment routes
  • /features - Feature routes
  • /changelog - Changelog routes

Structure

  • /routes - Contains all the routes
  • /handlers - Contains the route handlers

Roadmap

See the open issues for a list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE for more information.

Show your support

Please ⭐️ this repository if this project helped you!

flagsy-api's People

Contributors

adisreyaj 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.