Giter VIP home page Giter VIP logo

finx's Introduction

header-image

Next.js + TailwindCSS + Plaid

A boilerplate to quickly get a project running with Plaid using Next.js and TailwindCSS.

Features

✔️ TypeScript ✔️ Serverless ready ✔️ API Routes

Guide

Go ahead and run npm install in the root folder. You'll also want to add a .env file based on the existing .env.example file.

You must define PLAID_ENV, PLAID_CLIENT_ID, PLAID_PUBLIC_KEY, and PLAID_SECRET_SANDBOX in order to get started with Plaid's sandbox API.

This project is built to use the sandbox, but you can change to development when ready. At that time, make sure to define PLAID_SECRET, which is a separate secret token Plaid gives you for the development API.

Dependencies

  • next
  • react
  • next-connect
  • plaid
  • react-plaid-link
  • isomorphic-unfetch

Environment Variables

To reiterate on the paragraph above, the following are the required environment variables for this project:

  • process.env.BASE_URL - Needed for generate-sitemap.js to do its job. Also useful in general for concatenating your URL anywhere in the app.
  • process.env.PLAID_CLIENT_ID - The ClientID provided by Plaid's API
  • process.env.PLAID_PUBLIC_KEY - The Public Key provided by Plaid's API
  • process.env.PLAID_SECRET - The Secret provided by Plaid's development API
  • process.env.PLAID_SECRET_SANDBOX - The Secret provided by Plaid's sandbox API

Development

Start the development server by running npm run dev. The project supports using .env. Get started by creating a .env file with the above variables (as mentioned previously).

Styles (CSS): This project contains styles from TailwindCSS. Some custom default styles have been implemented, which can be edited in styles/tailwind.css and in tailwind.config.js.

.env

I included an example BASE_URL environment variable in .env.example for experimentation purposes. Please replace it with your own and refrain from sabotaging any variables that you include in general. You can try them in development by renaming it into .env.

In production, it is recommended to set the environment variables using the options provided by your cloud/hosting providers. Do not use or commit .env.

Contributing

Please let me know how I can make this better. Alternatively, feel free to submit a pull request. I will work on a contributing.md file.

License

MIT

Thanks

Thanks to Derek Sams for his blog post explaining how to get this set up on a create-react-app project. Helped me a lot!

finx's People

Contributors

siddharthram avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.