Giter VIP home page Giter VIP logo

envoix-server's Introduction

Envoix-server

This repository contains server code for the npm package envoix.

Table of Contents

  1. Introduction
  2. Tech stack
  3. Getting Started
    1. Installation
    2. Configuration
    3. Running the Server
  4. API Reference
    1. Authentication Endpoints
    2. Environment Variables Endpoints
    3. Permission Management Endpoints
  5. Security Considerations
  6. Conclusion

Tech Stack

  • NodeJS (RTE)
  • Postgres (Database)
  • TypeORM (ORM)
  • ExpressJS (web server)
  • Bcrypt + crypto (security)

Introduction

Envoix Server is built using Node.js and Express.js, providing a RESTful API for handling user authentication, environment variables management, and permission management. It leverages PostgreSQL as its database for storing user data, environment variables, and permissions.

Getting Started

Installation

To install Envoix Server, follow these steps:

  1. Clone the Envoix Server repository:
git clone https://github.com/your_username/envoix-server.git
  1. Navigate to the Envoix Server directory:
cd envoix-server
  1. Install dependencies:
npm install
  1. Configuration

Before running the server, configure the environment variables by copying the .env.example file to .env and providing appropriate values for your environment. Running the Server

  1. To start the Envoix Server, run the following command:
npm start

API Reference

Envoix Server provides the following endpoints for managing authentication, environment variables, and permissions:

Authentication Endpoints (/auth)

POST /auth/signup: Create a new user account.
POST /auth/login: Authenticate user credentials and generate an access token.
GET /auth/me: Retrieve user details (requires authentication).

Environment Variables Endpoints (/envs)

GET /envs: Retrieve all environment variables associated with the authenticated user.
POST /envs: Add a new environment variable.
GET /envs/:env_id: Retrieve an environment variable by ID.
PUT /envs/:env_id: Update an existing environment variable.
DELETE /envs/:env_id: Delete an environment variable.

Permission Management Endpoints (/permissions)

POST /permissions/:env_id: Add permissions for accessing an environment variable.
PUT /permissions/:env_id: Update existing permissions for accessing an environment variable.
DELETE /permissions/:env_id: Remove permissions for accessing an environment variable.
GET /permissions/:env_id: Retrieve permissions for an environment variable.

Security Considerations

Envoix Server utilizes encryption techniques to ensure the security of sensitive data, such as user passwords and environment variable contents.
Access to sensitive endpoints and data is restricted based on user authentication and permissions.
Regularly review and update user permissions to maintain security.
Avoid sharing sensitive information in environment variables unless necessary.

Conclusion

Envoix Server provides a robust backend solution for managing environment variables within development teams. By centralizing storage, enforcing encryption, and providing fine-grained access control, Envoix Server enhances collaboration while prioritizing security and simplicity.

Author

developed by Anurag Shukla

envoix-server's People

Contributors

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