From 97f97fb7672ebf66a5f852164915f458fdcb45c4 Mon Sep 17 00:00:00 2001 From: Luccas Mateus de Medeiros Gomes Date: Tue, 18 Apr 2023 20:30:05 -0300 Subject: [PATCH] [simple-example][sm] - simple README with tutorial --- examples/simple-example/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/simple-example/README.md diff --git a/examples/simple-example/README.md b/examples/simple-example/README.md new file mode 100644 index 00000000..fb98d0fb --- /dev/null +++ b/examples/simple-example/README.md @@ -0,0 +1,17 @@ +This is a repo intended to serve as an simple-example of a data catalog that get its data from a series of github-repos, you can init an example just like this one by. + +- Creating a new file inside o `examples` with `create-next-app` like so: +``` +npx create-next-app --example https://github.com/datopian/portaljs/tree/main/ --example-path examples/simple-example +``` +- Inside `` go to the `project.json` file and replace all instances of `simple-example` with `` +- Edit the file `datasets.json` to your liking, some examples can be found inside this [repo](https://github.com/datasets) +- Run the app using: +``` +nx serve +``` +Congratulations, you now have something similar to this running on `http://localhost:4200` +![](https://i.imgur.com/JrDLycF.png) +If yo go to any one of those pages by clicking on `More info` you will see something similar to this +![](https://i.imgur.com/cpKMS80.png) +