To prepare your environment just run:
$ yarn install
Then you're up to run the calendar app, to do this you'll need to start the server:
$ yarn start
You can define which port will be listen with an environment variable, eg: PORT=3001
.
After start the server you'll need to compile the application:
$ yarn compile
If you need to keep Webpack watching your changes add -w
, eg: yarn compile -w
.
The Calendar App access the Pipefy's GraphQL API localy (in development environment), so you'll need to run the Pipefy App too (eg.
cd path/to/pipefy/ && rails s
).
To Calendar App access the GraphQL API properly, you need to do some settings on Pipefy too.
- Start the Pipefy App localy
- Create (or rename) a organization with the name Pipefy Team
- Access OAuth2 Provider and create a new application
- Start the Pipefy App's console, eg:
cd path/to/pipefy/ && rails c
- Run the following commands
app = PlatformApp.find(1)
app.url = 'http://localhost:3001/manifest.json'
app.oauth_client_id = 'YOUR_APPLICATION_ID'
app.save!
All files were linted with ESLint and Flow and formated with Prettier.
$ flow
$ eslint ./
$ prettier --config .prettierrc --write '**/*.js' '**/*.jsx'
And the app was tested with Jest, you can run:
$ yarn test