First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
This project uses shadcn
for UI's.
git clone https://github.com/SwarnenduG07/FluxCraft.git
Go to the project directory and do
npm install
npm run dev
docker compose up
docker compose down
Go to [.env.example] Replace your won API keys with existing one's
CLERK_PUBLISHABLE_KEY & CLERK_SECRET_KEY
Go to Clerk
OPENAI_API_KEY
Go to OPEEAI
REPLICATE_API_TOKEN
Go toReplicate
STRIP API TOKEN & STRIPE_WEBHOOK_SECRET
Go to Strip
HUGGING FACE ACCES TOKEN
Go to Huggingface
And Create an account and go to setting then access token and create you access token and put it in -.env-
In WINDOWS
we will use Scoop
to install it so
Open PowerShell and pest this command to install scoop
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Now we will install Strip-cli To install this pest this 👇 command
scoop bucket add stripe https://github.com/stripe/scoop-stripe-cli.git
scoop install stripe
This will install Strip-cli
Visit this Strip-cli
and install this
Then Create an account and get a API key and replace this with STRIPE_API_KEY then go to webhook and download the strip-cli and run it
stripe login
In your terminal and do then
stripe listen --forward-to localhost:3000/api/webhook
in webhook section and it in your terminal you will get something like this
[whsec_97347152fae0xxxxxx823xxb1707d0b4aaa1794a5abf9c1sdkjh17]
put this in your STRIPE_WEBHOOK_SECRET
npm run dev
Open http://localhost:3000 with your browser to see the result.