-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
130 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
Docker is the easiest way to get started with self-hosted `Impler`. | ||
|
||
## Before you begin | ||
|
||
You need the following installed in your system: | ||
|
||
- [Docker](https://docs.docker.com/engine/install/) and [docker-compose](https://docs.docker.com/compose/install/) | ||
- [Git](https://git-scm.com/downloads) | ||
|
||
## Quick Start | ||
|
||
### Get the code | ||
|
||
Clone the Impler repo and enter the docker directory locally: | ||
|
||
```sh | ||
# Get the code | ||
git clone --depth 1 https://github.com/knovator/impler.io | ||
|
||
# Go to the docker folder | ||
cd impler.io/docker | ||
|
||
# Copy the example env file | ||
cp .env.example .env | ||
|
||
# Start | ||
docker-compose up | ||
``` | ||
|
||
Now visit [http://localhost:3000/api](http://localhost:3000/api) to define the schema for your import. | ||
|
||
|
||
## Secure your setup | ||
|
||
While we provide you with some example secrets for getting started, you should NEVER deploy your Impler setup using the defaults provided. | ||
|
||
### Update Secrets | ||
|
||
Update the `.env` file with your own secrets. In particular, these are required: | ||
|
||
- `ACCESS_KEY`: used by the API as a header to authenticate `API` requests. | ||
|
||
## Configuration | ||
|
||
To keep the setup simple, we made some choices that may not be optimal for production: | ||
|
||
- the database is in the same machine as the servers | ||
- the storage uses the S3 to store files | ||
|
||
We strongly recommend that you decouple your database before deploying. | ||
|
||
## Next steps | ||
|
||
- Got a question? [Ask here](https://github.com/knovator/impler.io/discussions). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "impler.io", | ||
"version": "0.1.0", | ||
"version": "0.1.4", | ||
"description": "Open source infrastructure to import data easily", | ||
"packageManager": "[email protected]", | ||
"private": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,62 @@ | ||
<h1>impler</h1> | ||
<div align="center"> | ||
<a href="https://impler.io"> | ||
<img src="https://user-images.githubusercontent.com/50201755/203472285-e64392b4-b01d-4ee9-95d8-9a41297fdfe2.png" width="280" alt="Logo"/> | ||
</a> | ||
</div> | ||
<h1 align="center">Embed Data Import into your Product</h1> | ||
<p align="center"> | ||
<br /> | ||
<a href="https://docs.impler.io"><strong>Explore the docs »</strong></a> | ||
· | ||
<a href="https://discord.impler.io">Join Discord</a> | ||
· | ||
<a href="https://github.com/knovator/impler.io/issues/new">Report Bug</a> | ||
</p> | ||
|
||
## ⭐️ Why | ||
The ability to import data is often needed in the application. It usually starts the same, reading `.csv` or `.xlsx` file and insert records into the database. But after a while, you'll find yourself looping over large files, validating rows, and providing support for file types that you've never heard of them before. | ||
|
||
Impler's goal is to help developers create an efficient and smooth data import experience between the product and its users. All with an easy-to-use API and outstanding developer experience. | ||
|
||
## ✨ Features | ||
|
||
- 🌈 Mapping Support between specified Schema and Fields in File | ||
- 💅 Validation Support | ||
- 🚀 Webhook support to send uploaded data | ||
- 🛡 Simple and powerful Authentication | ||
- 📦 Easy to set up and integrate | ||
- 🛡 Written in TypeScript | ||
|
||
## 📦 Install | ||
|
||
```bash | ||
npm install @impler/react | ||
``` | ||
|
||
```bash | ||
yarn add @impler/react | ||
``` | ||
|
||
## 🔨 Usage | ||
|
||
### Add Script | ||
You copy this snippet to your code before the closing body tag. | ||
```html | ||
<script type="text/javascript" src="https://localhost:4701/embed.umd.min.js" async></script> | ||
``` | ||
|
||
### Add Import Button | ||
|
||
```tsx | ||
import { Button as ImportButton } from '@impler/react'; | ||
|
||
<ImportButton | ||
projectId="<PROJECT_ID>" | ||
template="<CODE_OR_ID>" /* optional */ | ||
accessToken="<SECRET>" /* required if API is protected */ | ||
/> | ||
``` | ||
|
||
## 🔗 Links | ||
|
||
- [Home page](https://impler.io/) |