Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dentsusoken/au3te.ts
https://github.com/dentsusoken/au3te.ts
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dentsusoken/au3te.ts
- Owner: dentsusoken
- Created: 2024-04-01T00:51:31.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T02:14:31.000Z (4 months ago)
- Last Synced: 2024-08-29T06:51:26.724Z (4 months ago)
- Language: TypeScript
- Size: 274 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use
## Preparing the project
```bash
git clone https://github.com/dentsusoken/au3te.ts
cd au3te.ts
npm run build
npm link
```## Using au3te.ts from another project
```bash
mkdir test
cd test
npm init es6 -y
npm link au3te
```Creating index.js
```javascript
import { add } from 'au3te';console.log(add(1, 2));
```Executing index.js
```bash
node index.js
```## Launch Hono + Cloudflare Workers dev server
```bash
cd app
npm link au3te
```Creating app/.dev.vars
```
API_BASE_URL = "https://nextdev-api.authlete.net"
API_VERSION = "V3"
API_KEY = "xxxx"
ACCESS_TOKEN = "xxxx"
```Executing index.js
```bash
npm run dev
```