Square Dashboard
A dashboard app to display all sales for users with multiple square accounts
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
Built With
Getting Started
To get a local copy up and running follow these simple example steps.
Prerequisites
Firebase account and Square Developer account
Installation
- Clone the repo
git clone https://github.com/Midcrash/next-square-dashboard.git
- Install NPM packages
npm install
Setting up local variables
- Create an account for Firebase
- Create a new project
- Add a web app
- Go into project settings and copy the firebaseConfig
- Create a Square account
- Go to developer dashboard
- Create a new application and open
- Go into OAuth and go into sandbox mode
- Change Sandbox Redirect URL to http://localhost:3000/callback
- Copy Sandox Application ID and Sandbox Application secret
- Create an .env file at root and copy and paste your variables
# Firebase Config variables NEXT_PUBLIC_FIREBASE_API_KEY=(YOUR VARIABLE) NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=(YOUR VARIABLE) NEXT_PUBLIC_FIREBASE_PROJECT_ID=(YOUR VARIABLE) NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=(YOUR VARIABLE) NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=(YOUR VARIABLE) NEXT_PUBLIC_FIREBASE_APP_ID=(YOUR VARIABLE) # Square variables NEXT_PUBLIC_SQ_ENVIRONMENT=sandbox NEXT_PUBLIC_SQ_APPLICATION_ID=(YOUR VARIABLE) NEXT_PUBLIC_SQ_APPLICATION_SECRET=(YOUR VARIABLE)
- Run dev server
npm run dev
Usage
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
Roadmap
- Feature 1
- Feature 2
- Feature 3
- Nested Feature
See the open issues for a full list of proposed features (and known issues).
Contact
Tyrae Yao - @Tyao25567946 - yaotyrae@gmail.com
Project Link: https://github.com/Midcrash/next-square-dashboard