GithubHelp home page GithubHelp logo

subgrow's Introduction

setup

Next.js, blitz, react and zod with final form.

npm i

# setup dev environment
blitz dev

# build app


WORKFLOW

Production will be done on the develop branch, and merged into the main branch

Husky will take care of database updates on commit

blitz build will run on push to main branch

Branches are created from develop

And PR's are merged back into develop

A full build is done once it's merged into main

Test Accounts

Login using this account with username tester http://localhost:3000/auth/login

[email protected] welcome123

Profile Page http://localhost:3000/tester

Dashboard Page http://localhost:3000/dashboard

Signup http://localhost:3000/auth/signup

TODO LIST

Subscription Page

// TODO: subscription

// TODO: add stripe subscriptions // https://stripe.com/docs/billing/subscriptions/coupons

// https://www.mohammadfaisal.dev/blog/how-to-create-a-stripe-subscription-with-reactjs-and-nodejs // https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout

// PHASE I // 1. Subscription Page // https://github.com/stripe-samples/checkout-single-subscription

// PHASE II // 1. // TODO: coupon code // 2. easy to change subscription, with a modal showing pricing tables component //

// Followed at first // https://www.mohammadfaisal.dev/blog/how-to-create-a-stripe-subscription-with-reactjs-and-nodejs

pricing tables

Linked to sub page

https://linktr.ee/s/pricing/

apps page

https://linktr.ee/marketplace

User Box, icons, drop down user

Apps Page

individual GA analytics

Fix error with state

udpate react redux to 8, and fix startup error

redux-persist failed to create sync storage. falling back to noop storage. problem with action { type: '@@redux/INITr.o.o.s.s' }

Also store state in local storage

// TODO: endAdornment with if else condtional instead of state

Keep in mind, the state variables are built. I just need the upgrade, and some modifications to the files.

Also, cleanup to stop the state from running a bunch of times

Fix Sidepanel State https://github.com/ameshkin/subgrow/blob/b535280ad63dc7c530b80bb0cafc3935da903fb8/src/components/template/SidePanel/ProfileDesignPanel.js

add loaders

dash, login, sign up forms, middle of screen

heroku

# https://blitzjs.com/docs/deploy-heroku
heroku logs --app=subgrow --tail



# find port and kill
lsof -i :3000
kill -9 <PID>

# run typescript linter

npx tsc


# https://www.npmjs.com/package/fb-react-sdk


# most recent node

nvm install 18
nvm use 18
nvm alias default


ANALYZE=true npm run build


heroku config:set SESSION_SECRET_KEY=


database

SET FOREIGN_KEY_CHECKS=0;  -- turn off foreign key checks
TRUNCATE TABLE User;  -- truncate tables
TRUNCATE TABLE Session;
TRUNCATE TABLE Site;
TRUNCATE TABLE Profile;
SET FOREIGN_KEY_CHECKS=1;  -- turn on foreign key checks

// TOdo: bug with session and Session table. needs to delete if user is deleted, or user logs out

// TODO: dashboard page, when facebook link, icon appears

Check Widget

Finish the widget

Update lists

Delete button https://github.com/ameshkin/subgrow/blob/324456f1cf466f438c1fda5142b295d08c57ff4e/src/components/dashboard/LinkListCard.tsx

Hello there. I need some help with a blitz/next js website. Mostly minor UI things that have to do with material UI and connecting it to the database.

Such as drag drop.

Most of the work is done. I just need someone to finish the mutations.

I will point you directly to the code, and it should be very easy.

https://github.com/ameshkin/subgrow/blob/324456f1cf466f438c1fda5142b295d08c57ff4e/src/components/dashboard/AddLinkWidget.tsx

Remember Me Check

Store remember me in local storage

MISC

removed babel, may not be needed https://blog.bitsrc.io/why-you-should-replace-babel-with-swc-in-next-js-7d47510d0e0d

"presets": ["next/babel"],
"plugins": ["preval", "macros"]
}

ISSUES

  1. FB Login

https://subgrow.herokuapp.com/auth/login You are overriding current access token, that means some other app is expecting different access token and you will probably break things. Please consider passing access_token directly to API parameters instead of overriding the global settings.

PREMIUM FEATURES

https://linktr.ee/s/pricing/

  1. Google Analytics
  2. Support
  3. Mailchimp Integration
  4. Customizable Templates
  5. Custom Backgrounds
  6. Custom Fonts/Buttons
  7. Twitter feed, fb, api services
  8. hide logo, buttons
  9. NFT Features = $10 Validation fee, user sends ETH from wallet to verify ownership
  10. Google Analytics, and some custom charts, etc
  11. Click Tracking, conversions
  12. 2FA
  13. Special Dashboard that lists all profiles, easy access, followers, basic info

subgrow's People

Contributors

crazy0629 avatar

Stargazers

 avatar

Watchers

 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.