https://github.com/phicoder/ally-figma-driver
A Figma driver for AdonisJS Ally
https://github.com/phicoder/ally-figma-driver
Last synced: 5 months ago
JSON representation
A Figma driver for AdonisJS Ally
- Host: GitHub
- URL: https://github.com/phicoder/ally-figma-driver
- Owner: phicoder
- Fork: true (adonisjs-community/ally-starter-kit)
- Created: 2022-03-30T14:14:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-31T18:41:46.000Z (about 3 years ago)
- Last Synced: 2024-11-14T00:53:41.443Z (5 months ago)
- Language: TypeScript
- Homepage: https://docs.adonisjs.com/guides/auth/social
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-adonisjs - AdonisJS Ally Figma - A Figma driver for AdonisJS Ally (Packages)
README
# Adonis Ally Figma Driver
[](https://www.npmjs.com/package/adonis-ally-figma)
A [Figma](https://www.figma.com/) driver for [AdonisJS Ally](https://docs.adonisjs.com/guides/auth/social)
## Getting started
### 1. Install the package
Install the package from your command line.
```bash
npm install --save adonis-ally-figma
```or
```bash
yarn add adonis-ally-figma
```### 2. Configure the package
```bash
node ace configure adonis-ally-figma
```### 3. Validate environment variables
```ts
FIGMA_CLIENT_ID: Env.schema.string(),
FIGMA_CLIENT_SECRET: Env.schema.string(),
```### 4. Add variables to your ally configuration
```ts
const allyConfig: AllyConfig = {
// ... other drivers
figma: {
driver: 'figma',
clientId: Env.get('FIGMA_CLIENT_ID'),
clientSecret: Env.get('FIGMA_CLIENT_SECRET'),
callbackUrl: 'http://localhost:3333/figma/callback',
},
}
```## How it works
You can learn more about [AdonisJS Ally](https://docs.adonisjs.com/guides/auth/social) in the documentation. And learn about the implementation in the [ally-driver-boilerplate](https://github.com/adonisjs-community/ally-driver-boilerplate) repository.
## Contributing
1. Fork the repo
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'feat: Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## License
[MIT](LICENSE)