Table of Contents
Skylark UI is the offical frontend app for Skylark. It provides a user interface that enables users to:
- Import, create, update objects
- Create relationships between objects
- Curate objects into sets
- Assign availability rules to determine which objects are returned
- Modify their Skylark configuration
We made the decision to Open Source the repository so that users are able to take the UI and modify it to fit their needs. This can be anywhere from adding their logo, to crafting new features that are currently missing. All we ask in return is that when you create these features, you raise a pull request so that other users can benefit too!
Additionally, all requests that are made to Skylark from the UI are using the official Skylark GraphQL API meaning you can use this repository as an aid when developing your own Skylark applications. If this sounds like you, you may also want to check out our StreamTV application - a demo Streaming App built on Skylark.
StreamTV: https://github.com/skylark-platform/reference-apps
To set the code up locally for development, follow these steps:
- Yarn
npm install -g yarn
- Vercel CLI
npm install -g vercel@latest
Install the NPM dependencies:
yarn
This should also install the pre-commit hooks.
Next, you need to create a .env
or .env.local
file so you can to connect to your Skylark account.
There are two ways to do this:
1. Skylark Vercel team member
We can use the Vercel CLI to download environment variables straight from Vercel.
First, connect to the skylark-ui Vercel project
yarn vercel:link
Then we can pull the environment variables from Vercel:
yarn vercel:env
Note: When you use this method, it is likely that the values will change each day. Due to this it is neccessary to re-run the env command each day.
You can use the admin panel in your Skylark account to get the environment variables required to connect.
Coming soon...
To run the Next.js dev server:
yarn dev
To run Storybook:
yarn storybook
We use this to compare diff on a pull request as well as test before they are merged.
We use Jest and React Testing Libary for unit testing. To run use:
yarn test
In the future we plan to use Cypress and Percy for Integration tests.
The easiest way to deploy the Skylark UI is using Vercel. Use the Deploy button below to automatically fork this project and create it in Vercel.
Otherwise, as the app is built using Next.js, you can use their documentation to deploy to other platforms:
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Skylark Support - [email protected]
Project Link: https://github.com/skylark-platform/skylark-ui