|
1 | | -# hackertracker-export |
| 1 | +# HackerTracker Export |
2 | 2 |
|
3 | | -Export HackerTracker events to JSON |
| 3 | +A tool to export HackerTracker events to JSON format. |
4 | 4 |
|
5 | | -## Export Static HackerTracker Data |
| 5 | +## Table of Contents |
6 | 6 |
|
7 | | -### Install Dependancies |
| 7 | +- [Introduction](#introduction) |
| 8 | +- [Installation](#installation) |
| 9 | +- [Usage](#usage) |
| 10 | + - [Export Static Data](#export-static-data) |
| 11 | + - [Tailwind Safelisting Colors](#tailwind-safelisting-colors) |
| 12 | +- [References](#references) |
| 13 | + |
| 14 | +## Introduction |
| 15 | + |
| 16 | +HackerTracker Export is a utility designed to fetch and export the most recently updated HackerTracker events from Firebase into static JSON files. |
| 17 | + |
| 18 | +## Installation |
| 19 | + |
| 20 | +### Install Dependencies |
| 21 | + |
| 22 | +To get started, install the required npm packages: |
8 | 23 |
|
9 | 24 | ```bash |
10 | | - npm install |
| 25 | +npm install |
11 | 26 | ``` |
12 | 27 |
|
| 28 | +## Usage |
| 29 | + |
13 | 30 | ### Export Static Data |
14 | 31 |
|
| 32 | +To export the static data, run the following command: |
| 33 | + |
15 | 34 | ```bash |
16 | | - npm run export |
| 35 | +npm run export |
17 | 36 | ``` |
18 | 37 |
|
19 | | -_Fetches the 10 recently updated conferences from Firebase and exports static json files to a generated `out` directory_ |
20 | | - |
21 | | -### Firebase API key |
| 38 | +This command will fetch the 25 most recently updated conferences from Firebase and export them as static JSON files into a newly generated `out` directory. |
22 | 39 |
|
23 | | -Script requires the Firebase API key to be set as the `FIREBASE_API_KEY` environment variable. This stops [@Advice-Dog](https://github.com/Advice-Dog) from getting alerted every time I leak the key, but you are all hackers and undoubtedly you’ll find it anyway. |
| 40 | +### Tailwind Safelisting Colors |
24 | 41 |
|
25 | | -### Tailwind Safelisting colors |
| 42 | +To safelist colors for Tailwind CSS, use the following command: |
26 | 43 |
|
27 | 44 | ```sh |
28 | 45 | jq '.[].type.color' ./events.json | sort -u | tr '\n' ',' | sed 's/.$//' |
29 | 46 | ``` |
30 | 47 |
|
31 | | -[Tailwind Docs](https://tailwindcss.com/docs/content-configuration#safelisting-classes) |
| 48 | +For more information on safelisting classes in Tailwind CSS, refer to the [Tailwind CSS Documentation](https://tailwindcss.com/docs/content-configuration#safelisting-classes). |
| 49 | + |
| 50 | +## References |
| 51 | + |
| 52 | +- [HackerTracker](https://hackertracker.app/) |
| 53 | +- [Tailwind CSS Documentation](https://tailwindcss.com/docs/) |
0 commit comments