diff --git a/README.md b/README.md index 6209486463..5370841e5c 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,11 @@ Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart-spreadshe # Quick try -### 1-Click Deploy -#### Heroku +## 1-Click Deploy to Heroku + +Before doing so, make sure you have a Heroku account. By default, an add-on Heroku Postgres will be used as meta database. You can see the connection string defined in `DATABASE_URL` by navigating to Heroku App Settings and selecting Config Vars. + Deploy NocoDB to Heroku with 1-Click -
- -### Using Docker -```bash -docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:latest -``` -- NocoDB needs a database as input : See [Production Setup](https://github.com/nocodb/nocodb/blob/master/README.md#production-setup). -- If this input is absent, we fallback to SQLite. In order too persist sqlite, you can mount `/usr/app/data/`. +
- Example: +## NPX - ``` - docker run -d -p 8080:8080 --name nocodb -v /local/path:/usr/app/data/ nocodb/nocodb:latest - ``` +You can run below command if you need an interactive configuration. -### Using Npm ``` npx create-nocodb-app ``` -### Using Git -``` + + +## Node Application + +We provide a simple NodeJS Application for getting started. + +```bash git clone https://github.com/nocodb/nocodb-seed cd nocodb-seed npm install npm start ``` -### GUI +## Docker + +```bash +# for SQLite +docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:latest + +# for MySQL +docker run -d -p 8080:8080 \ + -e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \ + -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ + nocodb/nocodb:latest + +# for PostgreSQL +docker run -d -p 8080:8080 \ + -e NC_DB="pg://host.docker.internal:5432?u=root&p=password&d=d1" \ + -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ + nocodb/nocodb:latest + +# for MSSQL +docker run -d -p 8080:8080 \ + -e NC_DB="mssql://host.docker.internal:1433?u=root&p=password&d=d1" \ + -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ + nocodb/nocodb:latest +``` + +> To persist data in docker you can mount volume at `/usr/app/data/` since 0.10.6. In older version mount at `/usr/src/app`. Otherwise your data will be lost after recreating the container. + +> If you plan to input some special characters, you may need to change the character set and collation yourself when creating the database. Please check out the examples for [MySQL Docker](https://github.com/nocodb/nocodb/issues/1340#issuecomment-1049481043). + + +## Docker Compose + +We provide different docker-compose.yml files under [this directory](https://github.com/nocodb/nocodb/tree/master/docker-compose). Here are some examples. + +```bash +git clone https://github.com/nocodb/nocodb +# for MySQL +cd nocodb/docker-compose/mysql +# for PostgreSQL +cd nocodb/docker-compose/pg +# for MSSQL +cd nocodb/docker-compose/mssql +docker-compose up -d +``` + +> To persist data in docker you can mount volume at `/usr/app/data/` since 0.10.6. In older version mount at `/usr/src/app`. Otherwise your data will be lost after recreating the container. + +> If you plan to input some special characters, you may need to change the character set and collation yourself when creating the database. Please check out the examples for [MySQL Docker Compose](https://github.com/nocodb/nocodb/issues/1313#issuecomment-1046625974). + +# GUI + Access Dashboard using : [http://localhost:8080/dashboard](http://localhost:8080/dashboard) # Join Our Community - + + + + # Screenshots @@ -137,27 +187,25 @@ Access Dashboard using : [http://localhost:8080/dashboard](http://localhost:8080 # Table of Contents - [Quick try](#quick-try) - + [1-Click Deploy](#1-click-deploy) - - [Heroku](#heroku) - + [Using Docker](#using-docker) - + [Using Npm](#using-npm) - + [Using Git](#using-git) - + [GUI](#gui) + * [1-Click Deploy to Heroku](#1-click-deploy-to-heroku) + * [NPX](#npx) + * [Node Application](#node-application) + * [Docker](#docker) + * [Docker Compose](#docker-compose) +- [GUI](#gui) - [Join Our Community](#join-our-community) - [Screenshots](#screenshots) +- [Table of Contents](#table-of-contents) - [Features](#features) + [Rich Spreadsheet Interface](#rich-spreadsheet-interface) - + [App Store for workflow automations](#app-store-for-workflow-automations) - + [Programmatic API access via](#programmatic-api-access-via) + + [App Store for Workflow Automations](#app-store-for-workflow-automations) + + [Programmatic Access](#programmatic-access) + + [Sync Schema](#sync-schema) + + [Audit](#audit) - [Production Setup](#production-setup) - * [Docker](#docker) - - [Example: MySQL](#example--mysql) - - [Example: PostgreSQL](#example--postgresql) - - [Example: SQL Server](#example--sql-server) - * [Docker Compose](#docker-compose) * [Environment variables](#environment-variables) - [Development Setup](#development-setup) - * [Cloning the project](#clone-the-project) + * [Cloning the Project](#cloning-the-project) * [Running Backend locally](#running-backend-locally) * [Running Frontend locally](#running-frontend-locally) * [Running Cypress tests locally](#running-cypress-tests-locally) @@ -167,66 +215,44 @@ Access Dashboard using : [http://localhost:8080/dashboard](http://localhost:8080 - [Contributors](#contributors) # Features + ### Rich Spreadsheet Interface -- ⚡  Search, sort, filter, hide columns with uber ease -- ⚡  Create Views : Grid, Gallery, Kanban, Form -- ⚡  Share Views : public & password protected -- ⚡  Personal & locked Views -- ⚡  Upload images to cells (Works with S3, Minio, GCP, Azure, DigitalOcean, Linode, OVH, BackBlaze) -- ⚡  Roles : Owner, Creator, Editor, Viewer, Commenter, Custom Roles. -- ⚡  Access Control : Fine-grained access control even at database, table & column level. - -### App Store for workflow automations -- ⚡  Chat : Microsoft Teams, Slack, Discord, Mattermost -- ⚡  Email : SMTP, SES, Mailchimp -- ⚡  SMS : Twilio -- ⚡  Whatsapp -- ⚡  Any 3rd Party APIs - -### Programmatic API access via -- ⚡  REST APIs (Swagger) -- ⚡  GraphQL APIs. -- ⚡  Includes JWT Authentication & Social Auth -- ⚡  API tokens to integrate with Zapier, Integromat. -# Production Setup -NocoDB requires a database to store metadata of spreadsheets views and external databases. -And connection params for this database can be specified in `NC_DB` environment variable. +- ⚡  Basic Operations: Create, Read, Update and Delete on Tables, Columns, and Rows +- ⚡  Fields Operations: Sort, Filter, Hide / Unhide Columns +- ⚡  Multiple Views Types: Grid (By default), Gallery and Form View +- ⚡  View Permissions Types: Collaborative Views, & Locked Views +- ⚡  Share Bases / Views: either Public or Private (with Password Protected) +- ⚡  Variant Cell Types: ID, LinkToAnotherRecord, Lookup, Rollup, SingleLineText, Attachement, Currency, Formula and etc +- ⚡  Access Control with Roles : Fine-grained Access Control at different levels +- ⚡  and more ... -## Docker +### App Store for Workflow Automations -#### Example: MySQL -``` -docker run -d -p 8080:8080 \ - -e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \ - -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:latest -``` +We provide different integrations in three main categories. See App Store for details. -#### Example: PostgreSQL -``` -docker run -d -p 8080:8080 \ - -e NC_DB="pg://host:port?u=user&p=password&d=database" \ - -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:latest -``` +- ⚡  Chat : Slack, Discord, Mattermost, and etc +- ⚡  Email : AWS SES, SMTP, MailerSend, and etc +- ⚡  Storage : AWS S3, Google Cloud Storage, Minio, and etc -#### Example: SQL Server -``` -docker run -d -p 8080:8080 \ - -e NC_DB="mssql://host:port?u=user&p=password&d=database" \ - -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:latest -``` +### Programmatic Access -## Docker Compose -``` -git clone https://github.com/nocodb/nocodb -cd nocodb -cd docker-compose -cd mysql or pg or mssql -docker-compose up -d -``` +We provide the following ways to let users to invoke actions in a programmatic way. You can use a token (either JWT or Social Auth) to sign your requests for authorization to NocoDB. + +- ⚡  REST APIs +- ⚡  NocoDB SDK + +### Sync Schema + +We allow you to sync schema changes if you have made changes outside NocoDB GUI. However, it has to be noted then you will have to bring your own schema migrations for moving from environment to others. See Sync Schema for details. + +### Audit + +We are keeping all the user operation logs under one place. See Audit for details. + +# Production Setup + +By default, SQLite is used for storing meta data. However, you can specify your own database. The connection params for this database can be specified in `NC_DB` environment variable. Moreover, we also provide the below environment variables for configuration. ## Environment variables @@ -263,7 +289,6 @@ Changes made to code automatically restart. > nocodb/packages/nocodb includes nc-lib-gui which is the built version of nc-gui hosted in npm registry. You can visit localhost:8000/dashboard in browser after starting the backend locally if you just want to modify the backend only. - ## Running Cypress tests locally ```shell @@ -412,8 +437,3 @@ Our mission is to provide the most powerful no-code interface for databases whic - - - - -