Skip to content

Commit

Permalink
Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
petrpavlik committed Oct 23, 2024
1 parent 8636e9d commit df252f9
Show file tree
Hide file tree
Showing 10 changed files with 874 additions and 159 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
]
}
34 changes: 13 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started
## Setup

First, run the development server:
- Sign up for a free [IndiePitcher account](https://indiepitcher.com)
- Create a project
- Generate an API key
- Create `.env.local` file and add the API key `INDIEPITCHER_API_KEY=sc_xxxxxxxxxx`


## Try the examples
- Run the development server:

```bash
npm run dev
Expand All @@ -14,23 +21,8 @@ pnpm dev
bun dev
```

Open [http://localhost:3000](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`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

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

- [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.

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

## Deploy on Vercel

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.
- Open [http://localhost:3000](http://localhost:3000).
- Look at actions under `src/app/actions`, you'll probably want to update the email to your email address.
- Try the examples.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
Please note that all the code sending emails is inside actions that will be run on the server, and not the client frontend code. This is intentional to avoid leaking your IndiePitcher API key.
Loading

0 comments on commit df252f9

Please sign in to comment.