Skip to content

Commit bc2caf9

Browse files
committed
public release
1 parent 404fa99 commit bc2caf9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+7494
-2355
lines changed

.env.example

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
DATABASE_URL=
2+
NEXTAUTH_URL=
3+
NEXT_PUBLIC_URL=
4+
S3_UPLOAD_KEY=
5+
S3_UPLOAD_SECRET=
6+
S3_UPLOAD_BUCKET=
7+
S3_UPLOAD_REGION=
8+
REPLICATE_API_TOKEN=
9+
REPLICATE_USERNAME=
10+
SECRET=
11+
EMAIL_FROM=
12+
EMAIL_SERVER=smtp://localhost:1080
13+
STRIPE_SECRET_KEY=
14+
NEXT_PUBLIC_STRIPE_API_KEY=
15+
NEXT_PUBLIC_STRIPE_STUDIO_PRICE=
16+
NEXT_PUBLIC_STUDIO_SHOT_AMOUNT=

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ yarn-error.log*
3434
# typescript
3535
*.tsbuildinfo
3636
next-env.d.ts
37+
.vscode

README.md

+15-22
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
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).
1+
# Photoshot
2+
3+
An open-source AI avatar generator web app
4+
5+
![Photoshot](https://photoshot.app/og-cover.jpg)
6+
7+
Try it out at [photoshot.app](https://photoshot.app)
8+
9+
## Stack
10+
11+
-[Next.js](https://nextjs.org/) for webapp
12+
- 🖼 [Chakra UI](https://chakra-ui.com/) for UI components
13+
- 🧠 [Replicate](https://replicate.com/), a platform for running machine learning models in the cloud
14+
- 💰 [Stripe](https://stripe.com/) for payments
15+
- 👩‍🎨 [Stable Diffusion](https://replicate.com/stability-ai/stable-diffusion) an open-source text-to-image generation model
216

317
## Getting Started
418

@@ -11,24 +25,3 @@ yarn dev
1125
```
1226

1327
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14-
15-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
16-
17-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
18-
19-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20-
21-
## Learn More
22-
23-
To learn more about Next.js, take a look at the following resources:
24-
25-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27-
28-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29-
30-
## Deploy on Vercel
31-
32-
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.
33-
34-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

docker-compose.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: "3"
2+
3+
services:
4+
postgres:
5+
image: postgres:14
6+
restart: always
7+
environment:
8+
POSTGRES_USER: photoshot
9+
POSTGRES_PASSWORD: photoshot
10+
POSTGRES_DB: photoshot
11+
ports:
12+
- 5432:5432
13+
volumes:
14+
- postgresql:/var/lib/postgresql
15+
- postgresql_data:/var/lib/postgresql/data
16+
17+
maildev:
18+
image: djfarrelly/maildev
19+
ports:
20+
- "1080:80"
21+
- "25:25"
22+
volumes:
23+
postgresql:
24+
postgresql_data:

next.config.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
const nextConfig = {
33
reactStrictMode: true,
44
swcMinify: true,
5-
}
5+
images: {
6+
remotePatterns: [
7+
{
8+
protocol: "https",
9+
hostname: "replicate.delivery",
10+
},
11+
],
12+
},
13+
};
614

7-
module.exports = nextConfig
15+
module.exports = nextConfig;

0 commit comments

Comments
 (0)