Skip to content

Commit

Permalink
feat: basic apis using sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpho93 committed Aug 10, 2024
1 parent cbbc026 commit f026c02
Show file tree
Hide file tree
Showing 11 changed files with 3,277 additions and 251 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,4 @@ dist
lib/
.env
.DS_Stors
db.sqlite
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# mongo-flow

Effortlessly move data across MongoDB databases

## Template

This repo is created from the template [here](https://github.com/ryansonshine/typescript-npm-package-template)

### Sample APIs

#### Create a job

```bash
curl -X POST http://localhost:3000/v1/jobs \
-H "Content-Type: application/json" \
-d '{"source": "mongodb://localhost:27017/source", "destination": "mongodb://localhost:27017/destination", "collections": ["test"]}'
```

#### Get all jobs

```bash
curl http://localhost:3000/v1/jobs
```
Loading

0 comments on commit f026c02

Please sign in to comment.