Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions example/nextjs-typescript/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PHYLLO_CLIENT_ID=
PHYLLO_SECRET_ID=

NEXT_PUBLIC_ENV=
NEXT_PUBLIC_REDIRECT_URL=
3 changes: 3 additions & 0 deletions example/nextjs-typescript/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
37 changes: 37 additions & 0 deletions example/nextjs-typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

.env

# vercel
.vercel

# typescript
*.tsbuildinfo
16 changes: 16 additions & 0 deletions example/nextjs-typescript/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#Phyllo web example [NextJS](https://nextjs.org/)

## Getting Started

- First, run ``` npm install ``` to install dependencies:

- Setup environment variables as per ```.env.example```

- To run the project enter ```npm run dev``` in example root directory


##Documentation References -

- [Connect Flow](https://docs.getphyllo.com/docs/api-reference/ZG9jOjM2MjIyOTcy-web-sdk-integration)
- [Users API](https://docs.getphyllo.com/docs/api-reference/b3A6MTQwNjEzNzM-retrieve-a-user)
- [Work platforms](https://docs.getphyllo.com/docs/api-reference/b3A6MTQwNjEzNzE-retrieve-a-work-platform)
5 changes: 5 additions & 0 deletions example/nextjs-typescript/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
6 changes: 6 additions & 0 deletions example/nextjs-typescript/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig
Loading