-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sam Bonill
committed
Oct 29, 2022
1 parent
ee870cb
commit e33a160
Showing
10 changed files
with
134 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Getting Started with Graphul and React | ||
|
||
## Available Scripts | ||
|
||
### Requirements: | ||
|
||
* Nodejs | ||
* Npm | ||
* Rust :) | ||
|
||
In the project directory, you can run: | ||
|
||
### `bash run.sh` | ||
|
||
|
||
Runs the graphul server.\ | ||
Open [http://127.0.0.1:8000](http://127.0.0.1:8000) to view it in your browser. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
/> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<link href="https://unpkg.com/[email protected]/dist/tailwind.min.css" rel="stylesheet"> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cd app && npm run build && cd .. | ||
cargo run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
use serde_json::{json, Value}; | ||
|
||
pub fn get_data(name: String) -> Value { | ||
json!( | ||
[ | ||
{ | ||
"id": 1758, | ||
"user_id": 3678, | ||
"user_name": name, | ||
"img": "https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80", | ||
"title": "Bardus truculenter suspendo patruus beatus voluptatem vito alter arcesso demens supra deprecator ut aveho somnus.", | ||
"body": "Laboriosam curriculum autem. Claudeo viduo tunc. Defendo arca conventus. Suscipio summa basium. Sed aer arguo. Acer volo quaerat. Bardus ulterius arguo. Creo suppono dolores. Depromo absorbeo et. Strenuus villa temperantia. Non xiphias iusto. Solitudo tenuis in. Cupiditas campana desipio. Aduro sollicito cervus. Molestias curia qui. Argumentum possimus unus. Inflammatio ut nemo. Stipes pecunia nihil. Autus facilis ancilla. Omnis aggero victus." | ||
}, | ||
{ | ||
"id": 1757, | ||
"user_id": 3676, | ||
"user_name": name, | ||
"img": "https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80", | ||
"title": "Maxime vae cogito conspergo accedo arbustum ultra sed acsi cornu decet undique quia sint aggredior viduo tantillus assumenda.", | ||
"body": "Solium valeo ante. Vicinus omnis tenetur. Utrimque tristis ex. Tui magni adnuo. Et delibero comis. Bis celebrer creo. Delectatio victoria apud. Stabilis vulgivagus triumphus. Ut cras trans. Denuo volva vivo. Nihil conventus conatus. Veritatis comedo terga. Stultus vito crux. Caute aedificium optio. Est desparatus asper. Tremo eligendi virtus. Acceptus tracto canonicus. Solium taceo molestias. Vomica deporto veritas. Patria conqueror cum." | ||
}, | ||
{ | ||
"id": 1756, | ||
"user_id": 3675, | ||
"user_name": name, | ||
"img": "https://images.unsplash.com/photo-1544654803-b69140b285a1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80", | ||
"title": "Ut pecunia ver accommodo triginta aliquid repellat.", | ||
"body": "Accommodo adimpleo cultellus. Magnam atrocitas et. Eligendi cur tres. Acceptus vinculum sto. Tergum appello umbra. Sumo timidus aeneus. Deprimo totidem verus. Cognomen subito concido. Ultio sit triginta. Altus amiculum cetera. Cimentarius laudantium assentator. Ullam nostrum degero. Nulla verbera amita. Ea aeger delego. Quia temporibus terreo. Vere aut cibo. Adinventitias utpote ager. Delectatio magnam candidus. Cuppedia valde anser. Pel cogito denuncio." | ||
}, | ||
{ | ||
"id": 1755, | ||
"user_id": 3674, | ||
"user_name": name, | ||
"img": "https://images.unsplash.com/photo-1530099486328-e021101a494a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1547&q=80", | ||
"title": "Demo validus fugiat vallum crur causa beatus dedico canis aggero videlicet vulgus suscipio ait denique nemo.", | ||
"body": "Aeger ut quidem. Iste aegre aggero. Adduco et sed. Teres id vulnus. Eius id surculus. Ut speciosus adhuc. Arcus vorax valeo. Vel demulceo eveniet. Sequi tenetur arto. Nemo xiphias eligendi. Et magni textus. Consequatur correptius tametsi. Clementia claustrum animi. Contabesco vesica aliquam. Crudelis curto volutabrum. Viscus id ter. Celo teneo cumque. Articulus pecto ter. Virtus cena tego. Trucido decens angulus. Avarus explicabo illum. Vel sortitus canonicus. Aestus delectatio theologus." | ||
}, | ||
{ | ||
"id": 1754, | ||
"user_id": 3674, | ||
"user_name": name, | ||
"img": "https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1484&q=80", | ||
"title": "Cupiditas sponte fugit careo vilitas strenuus culpo vomica est tenus.", | ||
"body": "Capitulus possimus voluptas. Cerno magnam spiculum. Adiuvo auctus tremo. Cogo suscipio aliquam. Conculco autem cibus. Votum thesis careo. Ago benigne conspergo. Ars cras uberrime. Corona toties numquam. Aegrus alter vaco. Correptius dapifer aegrotatio. Accusantium nihil vinitor. Thymbra vinitor id. Statua adsuesco vito. Tametsi audio accipio. Video auris officia. Coruscus ulterius volo. Sodalitas cohors pariatur. Paulatim taceo nam. Et consequatur bellicus." | ||
}, | ||
{ | ||
"id": 1753, | ||
"user_id": 3668, | ||
"user_name": name, | ||
"img": "https://images.unsplash.com/photo-1624996379697-f01d168b1a52?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80", | ||
"title": "Vorago coerceo tergiversatio conventus volup beneficium cruciamentum strues vulpes stipes atque ventus voluptatem defleo.", | ||
"body": "Eligendi tabernus conor. Vita crepusculum votum. Voluptatibus saepe numquam. Damno consequatur facilis. Adsuesco adnuo aetas. Sublime conicio suadeo. Attonbitus nam verumtamen. Capillus vobis viridis. Delego casso delinquo. Valens solum beneficium. Texo suffragium custodia. Traho tabella color. Via clementia maxime. Peccatus causa conor. Demonstro ut cometes. Textilis voluptatem crux. Cena antepono sufficio. Aequitas trans atrocitas. Paens fuga et. Beatus accommodo solus." | ||
} | ||
] | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters