This repository contains the official plugins for uStart framework.
Currently there are 3 plugins:
- regions of Chile: It provides seed data, queries and testing.
- comunas of Chile: It provides seed data, queries and testing. It works as a standalone package or together with regions of Chile.
- parameters: It provides queries and mutations. It is intended to be use as global settings for a platform. For instance: rate limits, subscription prices, enable hidden features, etc.
Refer to each plugin for installation instructions and more details.
If you like it, remember to give a star ;-)
To run the test suite of this repository (all plugins)
- Clone the full repo:
git clone https://github.com/ustart-dev/ustart-plugins.git
- Move to
test
folder and install all dependencies
mv ustart-plugins/test
npm install
- Add
.env
file at the root oftest
NODE_ENV=testing
GRAPHQL_ENDPOINT_PORT=4000
PG_URI="postgres://localhost:5432/plugins_test"
We use database name
plugins_test
, but you can use whatever you want just make sure its name ends with_test
.
- Open two terminals: one for start the server and the other one to run the tests
First terminal
npm start
Second terminal (once the server is already running otherwise this will fail)
npm run test