First, run the development server:
npm run dev
# or
yarn dev
Open http:https://localhost:3000 with your browser to see the result.
npm install
npx prisma generate
Add the environment variable DATABASE_URL
in the .env
file:
DATABASE_URL=your_db_url_here
Launching the prisma studio:
npm run db:studio
Open your browser and go to http:https://localhost:5555. You should be able to see the tables created in the database with your records.
Endpoints created:
- Get all nfts :
GET /api/nfts
- Get nft defail :
GET /api/nfts/:id
- Get all categories :
GET /api/categories
- Get category detail :
GET /api/categories/:id
- Get all collections :
GET /api/collections
- Get collection detail :
GET /api/collections/:id
- Get home feed :
GET /api/feed/home