|
1 | | - |
2 | | -<p align="center"> |
3 | | - <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a> |
4 | | - <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/changelog-updating-blue.svg" alt="Changelog"></a> |
5 | | - <a href="https://buymeacoffee.com/varnasra"><img src="https://img.shields.io/badge/Support-BuyMeACoffee-yellow.svg" alt="Support Me"></a> |
6 | | -</p> |
7 | | - |
8 | | - |
9 | 1 | # RootStack |
10 | 2 |
|
11 | | -> Foundational data schemas, seed datasets, and queries powering the OpenStacks ecosystem. |
| 3 | +**Foundational data schemas for the OpenStacks ecosystem.** |
12 | 4 |
|
13 | | ---- |
| 5 | +[](https://openstacks.dev) |
| 6 | +[](LICENSE) |
| 7 | +[]() |
14 | 8 |
|
15 | | - |
| 9 | +> The database layer for OpenStacks — schemas, seed data, and queries. |
16 | 10 |
|
17 | 11 | --- |
18 | 12 |
|
19 | | -# 📚 Table of Contents |
20 | | -- [About](#about) |
21 | | -- [Architecture](#architecture) |
22 | | -- [Folder Structure](#folder-structure) |
23 | | -- [Installation & Usage](#installation--usage) |
24 | | -- [Roadmap](#roadmap) |
25 | | -- [Contributing](#contributing) |
26 | | -- [License](#license) |
27 | | -- [Support Me](#support-me) |
28 | | -- [Citation](#citation) |
29 | | -- [Contact](#contact) |
30 | | -- [Changelog](#changelog) |
| 13 | +## Status |
31 | 14 |
|
32 | | ---- |
| 15 | +**This repository is in early development.** The architecture and goals are documented below, but the actual SQL schemas, seed data, and queries have not yet been implemented. Contributions are welcome to help build this out. |
33 | 16 |
|
34 | | -# 📖 About |
| 17 | +## Vision |
35 | 18 |
|
36 | | -**RootStack** is the foundational database layer for the OpenStacks family of tools. |
37 | | -It provides structured database schemas, seed datasets, and example queries for modular, scalable, and open development. |
| 19 | +RootStack will provide the foundational data layer for the OpenStacks ecosystem: |
38 | 20 |
|
39 | | -RootStack serves as the backbone for BridgeStack (API services) and ViewStack (frontend visualization). |
| 21 | +- **Structured schemas** (PostgreSQL/SQLite) for development sector data |
| 22 | +- **Seed datasets** for testing and demonstration |
| 23 | +- **Example queries** for common analysis patterns |
| 24 | +- **Migration scripts** for schema evolution |
40 | 25 |
|
41 | | ---- |
| 26 | +### Planned Architecture |
42 | 27 |
|
43 | | -# 🏛️ Architecture |
44 | | - |
45 | | -```plaintext |
46 | | -[ RootStack (Database Layer) ] |
47 | | - ⇅ |
48 | | -[ BridgeStack (API Layer) ] |
49 | | - ⇅ |
50 | | -[ ViewStack (Frontend Layer) ] |
| 28 | +``` |
| 29 | +RootStack (Database) → BridgeStack (API) → ViewStack (Frontend) |
51 | 30 | ``` |
52 | 31 |
|
53 | | -RootStack provides clean, well-structured data that flows upward into APIs and user interfaces. |
| 32 | +RootStack feeds data to [BridgeStack](https://github.com/Varnasr/BridgeStack) via SQL, which exposes it through a REST API to [ViewStack](https://github.com/Varnasr/ViewStack). |
54 | 33 |
|
55 | | ---- |
| 34 | +### Planned Structure |
56 | 35 |
|
57 | | -# 📁 Folder Structure |
58 | | - |
59 | | -```plaintext |
| 36 | +``` |
60 | 37 | RootStack/ |
61 | 38 | ├── schemas/ |
62 | | -│ └── tables.sql |
| 39 | +│ ├── tables.sql # Core table definitions |
| 40 | +│ └── migrations/ # Schema version changes |
63 | 41 | ├── seed_data/ |
64 | | -│ └── seed_initial.sql |
| 42 | +│ └── seed_initial.sql # Test/demo data |
65 | 43 | ├── queries/ |
66 | | -│ └── example_queries.sql |
67 | | -├── README.md |
| 44 | +│ └── example_queries.sql # Common query patterns |
| 45 | +└── docs/ |
| 46 | + └── data_dictionary.md # Field descriptions and relationships |
68 | 47 | ``` |
69 | 48 |
|
70 | | ---- |
71 | | - |
72 | | -# ⚙️ Installation & Usage |
73 | | - |
74 | | -1. Clone the repository: |
75 | | - ```bash |
76 | | - git clone https://github.com/Varnasr/RootStack.git |
77 | | - cd RootStack |
78 | | - ``` |
| 49 | +## How to Contribute |
79 | 50 |
|
80 | | -2. Set up the database (PostgreSQL recommended): |
81 | | - ```bash |
82 | | - psql -U your_user -d your_database -f schemas/tables.sql |
83 | | - psql -U your_user -d your_database -f seed_data/seed_initial.sql |
84 | | - ``` |
85 | | - |
86 | | -3. Explore and adapt queries from `/queries/`. |
87 | | - |
88 | | ---- |
| 51 | +This is a great repo to contribute to if you have experience with: |
| 52 | +- PostgreSQL or SQLite schema design |
| 53 | +- Development sector data structures (surveys, indicators, program data) |
| 54 | +- Database migration workflows |
89 | 55 |
|
90 | | -# 🛣️ Roadmap |
| 56 | +See the [OpenStacks hub](https://github.com/Varnasr/OpenStacks-for-Change) for ecosystem-wide contribution guidelines. |
91 | 57 |
|
92 | | -- [ ] Add multiple schema versions (PostgreSQL + SQLite) |
93 | | -- [ ] Expand sample seed datasets |
94 | | -- [ ] Add database migration templates |
95 | | -- [ ] Integrate versioning system |
96 | | -- [ ] Optimize queries for scalability |
| 58 | +## How It Connects |
97 | 59 |
|
98 | | ---- |
99 | | - |
100 | | -# 🤝 Contributing |
101 | | - |
102 | | -Contributions are welcome! ✨ |
103 | | -Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. |
104 | | - |
105 | | ---- |
| 60 | +| Stack | Role | Link | |
| 61 | +|-------|------|------| |
| 62 | +| **RootStack** (this repo) | Database schemas & seed data | You are here | |
| 63 | +| [BridgeStack](https://github.com/Varnasr/BridgeStack) | API backend (FastAPI) | Consumes RootStack data | |
| 64 | +| [ViewStack](https://github.com/Varnasr/ViewStack) | Frontend UI | Displays BridgeStack API data | |
106 | 65 |
|
107 | | -# 📜 License |
108 | | - |
109 | | -This project is licensed under the [MIT License](LICENSE). |
110 | | - |
111 | | ---- |
112 | | - |
113 | | -# ☕ Support Me |
114 | | - |
115 | | -If you find RootStack helpful, [buy me a coffee](https://buymeacoffee.com/varnasra)! |
116 | | - |
117 | | ---- |
118 | | - |
119 | | -# 📝 Citation |
120 | | - |
121 | | -``` |
122 | | -@misc{rootstack2025, |
123 | | - author = {Varna Sri Raman}, |
124 | | - title = {RootStack: Foundational Database Layer of OpenStacks}, |
125 | | - year = {2025}, |
126 | | - url = {https://github.com/Varnasr/RootStack} |
127 | | -} |
128 | | -``` |
129 | | - |
130 | | ---- |
131 | | - |
132 | | -# 📬 Contact |
133 | | - |
134 | | -- 📧 Email: varna.sr@gmail.com |
135 | | -- 🌐 Threads: [@varnasriraman](https://www.threads.net/@varnasriraman) |
136 | | - |
137 | | ---- |
138 | | - |
139 | | -# 📈 Changelog |
140 | | - |
141 | | -This project uses an [auto-updating CHANGELOG.md](CHANGELOG.md) generated by GitHub Actions. |
142 | | - |
143 | | ---- |
| 66 | +## License |
144 | 67 |
|
| 68 | +MIT — free to use, modify, and share. See [LICENSE](LICENSE). |
145 | 69 |
|
146 | 70 | --- |
147 | 71 |
|
148 | | -<p align="center"> |
149 | | -Made with ❤️ by <b>Varna Sri Raman</b> • <a href="https://buymeacoffee.com/varnasra">Support my work</a> • <a href="mailto:varna.sr@gmail.com">Contact</a> |
150 | | -</p> |
| 72 | +**Created by [Varna Sri Raman](https://github.com/Varnasr)** — Development Economist & Social Researcher |
0 commit comments