api/README.txt
53 lines · 2096 bytes
1
2============================================================================
3 AWESOME PRIVACY API SOURCE
4============================================================================
5
6ABOUT
7-----
8This directory contains the source for the Awesome Privacy API.
9You can use the API to interact with our data programmatically.
10The API is build using Hono, and intended for Cloudflare Workers.
11
12============================================================================
13
14PUBLIC INSTANCE
15---------------
16We have a free, no-auth, CORS-enabled instance which you can use.
17Get started with the Swagger docs at https://api.awesomeprivacy.com
18
19============================================================================
20
21GETTING STARTED
22---------------
231. You'll first need Git and Node.js installed on your system
242. Then install wrangler, `npm install wrangler --save-dev`
253. Download `git clone git@github.com:Lissy93/awesome-privacy.git`
264. And navigate int the api dir, with `cd awesome-privacy/api`
275. Install all required dependencies, by running `npm install`
284. Then run `yarn start` to start a local instance of the API
29
30============================================================================
31
32DEVELOPMENT
33-----------
341. Run `yarn dev` to start a local instance of the API + Swagger interface
352. Open `http://localhost:9000` in your browser or with a HTTP client
363. Make any desired changes in `src/` - the server will auto reload
37
38============================================================================
39
40DEPLOYMENT
41----------
421. Sign up for Cloudflare Workers (https://workers.dev), free tier is fine
432. Follow the steps in "Getting Started" to setup the project locally
443. Run `wrangler login` to login to your Cloudflare account in wrangler
454. Run `wrangler deploy` to publish the API to Cloudflare Workers
46
47============================================================================
48
49LICENSE
50-------
51This project is licensed under MIT, (C) Alicia Sykes <aliciasykes.com> 2024
52See the GitHub repo for more info https://github.com/Lissy93/awesome-privacy
53