Code Monkey home page Code Monkey logo

apps's Introduction

Konecty

Konecty Open source Tech Business Platform

How to run local/development

You will need a mongodb database (you can use a free account at cloud.mongodb.com or a local mongodb install)

Create .env using the sample.

Fill MONGO_URL with your database url, adding authentication and options

MONGO_URL=mongodb+srv://login:[email protected]/?appName=konecty

yarn
yarn start

If this is a empty database, basic metadata and starting collections will be automatically created.

The UI will be running at localhost:3000

Konecty environment variables

  • KONECTY_MODE: Can be production or development
  • DISABLE_KONSISTENT: can be to true if you don't want Konsistent to run on the same process as Kondata. It's enabled by default.
  • MONGO_URL: Mongo database URL
  • DISABLE_REINDEX: can be to true if you don't want to verify if all index are created.
  • ALLOWED_ORIGINS: a list of cors alloweds URLs separated by |
  • LOG_REQUEST=true: if provide all requests are loggeds
  • DEFAULT_SMTP_HOST: SMTP host for default email sender (required)
  • DEFAULT_SMTP_PORT: SMTP port for default email sender (required)
  • DEFAULT_SMTP_USERNAME: SMTP username for default email sender (required)
  • DEFAULT_SMTP_PASSWORD: SMTP password for default email sender (required)
  • DEFAULT_SMTP_SECURE: SMTP secure flag for default email sender
  • DEFAULT_SMTP_TLS: SMTP tls flag for default email sender
  • DEFAULT_SMTP_IGNORE_TLS: SMTP config ignoreTLS for nodemailer, if this is true and secure is false then TLS is not used even if the server supports STARTTLS extension
  • DEFAULT_SMTP_TLS_REJECT_UNAUTHORIZED: SMTP config tls.rejectUnauthorized for nodemailer, config would open a connection to TLS server with self-signed or invalid TLS certificate
  • DEFAULT_SMTP_AUTH_METHOD: SMTP config authMethod for nodemailer, defines preferred authentication method, defaults to ‘PLAIN’
  • DEFAULT_SMTP_DEBUG: SMTP config debug for nodemailer, if set to true, then logs SMTP traffic, otherwise logs only transaction events
  • UI_URL: host for ui
  • LOG_LEVEL: Pino log levels
  • LOG_TO_FILE: Optional file name to write all logs. Path relative to project root

FILE STORAGE API

  • STORAGE: Can be s3 or fs for files and images uploads
  • BLOB_URL: (optional) if use external server for file upload
  • PREVIEW_URL: (optional) if use external file server

s3 STORAGE SETTINGS

  • S3_DOMAIN: required if different of AWS eg: digitaloceanspaces.com
  • S3_REGION: S3 region
  • S3_BUCKET: S3 bucket
  • S3_ACCESSKEY: Generated for your aws account. Follow this instructions: Where’s My Secret Access Key?.
  • S3_SECREDKEY: Generate with instructions above (👆).
  • S3_PUBLIC_URL: Bucket public url

fs STORAGE SETTINGS

  • STORAGE_DIR: Filesystem directory for file storage

How to run on Docker

docker pull konecty/konecty
docker run --name kondata -p 3000:3000 --link mongo --env MONGO_URL=mongodb://mongo:27017/konecty --env MONGO_OPLOG_URL=mongodb://mongo:27017/local konecty/konecty

REST API

Examples of REST usage can be found here: REST

Logs

  • KONDATA only log requests when status code of the response isn't 200 (OK).

apps's People

Contributors

abcdel avatar anyi avatar baozhoutao avatar chenzhipei avatar hongyuvip avatar hotoa avatar jasonmaomao avatar steedos-private avatar sunhaolin avatar yinlianghui avatar zhangshanshan2016 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.