Skip to content

Commit

Permalink
fix storage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Nov 21, 2023
1 parent 1950001 commit a0b8649
Show file tree
Hide file tree
Showing 23 changed files with 376 additions and 419 deletions.
57 changes: 34 additions & 23 deletions minter/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,47 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started
## Minter

First, run the development server:
**DEMO:** https://examples.mintbase.xyz/minter

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Mintbase/examples/tree/main/minter) [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/Mintbase/examples/tree/main/minter)

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
This is a simple minter example built on top of **Next.js 14** using some of [@mintbase-js](https://github.com/Mintbase/mintbase-js) packages:

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
- [@mintbase.js/sdk](https://github.com/Mintbase/mintbase-js/tree/beta/packages/sdk): to use the execute call when minting

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
- [@mintbase.js/react](https://github.com/Mintbase/mintbase-js/tree/beta/packages/react) to provide the wallet connection

## Learn More
- [@mintbase.js/storage](https://github.com/Mintbase/mintbase-js/tree/beta/packages/sdk): to upload the images to Arweave

To learn more about Next.js, take a look at the following resources:

### Setup
on the file *layout.tsx* you have the object

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
```ts
export const MintbaseWalletSetup = {
contractAddress: "test122212.mintspace2.testnet",
network: "testnet",
callbackUrl: "http://testnet.localhost:3000/",
};
```
where contractAddress is the address of a store that you are a minter.
if you dont have a store you can [deploy a new contract](https://www.mintbase.xyz/launchpad/contracts/0) on our launchpad

after that you can run
```
pnpm install
```
and

```
pnpm dev
```

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel
## Extending

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
This project is setup using Next.js + @mintbase/js + shadcn ui + react hook form
You can use this project as a reference to build your own, and use or remove any library you think it would suit your needs.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
## 🙋‍♀️ Need extra help?
21 changes: 1 addition & 20 deletions minter/next.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@

/** @type {import('next').NextConfig} */

const { NormalModuleReplacementPlugin } = require('webpack');


const nextConfig = {
webpack: (config, { isServer, webpack}) => {
// if (!isServer) {
// config.resolve.fallback = {
// formidable: false, //here add the packages names and set them to false
// };
// }
// config.plugins.push(new webpack.DefinePlugin({ "global.GENTLY": false }));

config.plugins.push(
new NormalModuleReplacementPlugin(/^hexoid$/, require.resolve('hexoid/dist/index.js')),
);

return config;
},
}
const nextConfig = {}

module.exports = nextConfig
Loading

0 comments on commit a0b8649

Please sign in to comment.