Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesmartmonkey/sync-api-data
Data connector to sync data from an api with a database
https://github.com/thesmartmonkey/sync-api-data
Last synced: 20 days ago
JSON representation
Data connector to sync data from an api with a database
- Host: GitHub
- URL: https://github.com/thesmartmonkey/sync-api-data
- Owner: TheSmartMonkey
- License: mit
- Created: 2024-11-19T22:39:50.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-27T22:08:01.000Z (26 days ago)
- Last Synced: 2024-11-27T23:18:59.915Z (26 days ago)
- Language: TypeScript
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sync-api-data
Data connector to sync data from an api with a database
## Installation
```sh
npx degit https://github.com/TheSmartMonkey/create-typescript-npm-library app
```## Getting started
1. Install nodejs : https://nodejs.org/en/
2. Install node_modules with `npm install`
3. Available commands with `npm run` (`npm start` runs your code from `main.ts`)
## Running Tests
To run the tests for your library, use the following command:
```sh
npm run test
```This will execute all test files using Jest.
## Publish your library
To publish your library to npm, use the following command:
```sh
npm run pub
```Ensure you have updated the version in `package.json` and are logged into npm.
## Folder tree
```
| .eslintrc.json
| .gitignore
| .prettierignore
| .prettierrc.json
| jest.config.ts
| LICENSE
| main.ts
| package-lock.json
| package.json
| README.md
| tsconfig.json
|
+---debug
+---main.ts
+---package-lock.json
+---package.json
|
+---src
| +---functions
hello.test.ts
hello.ts
+---libs
.gitkeep
+---models
hello.model.ts```