diff --git a/README.md b/README.md index 3941ac2..58bda3d 100644 --- a/README.md +++ b/README.md @@ -2,37 +2,25 @@ Another reddit clone to train me. -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```sh -# create a new project in the current directory -npx sv create - -# create a new project in my-app -npx sv create my-app -``` - ## Developing -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - +Sveltekit ```sh -npm run dev +pnpm run dev +``` -# or start the server and open the app in a new browser tab -npm run dev -- --open +Pocketbase +```sh +pnpm run db_dev +``` + +SMTP Server +```sh +docker run --rm -it -p 5000:80 -p 2525:25 rnwood/smtp4dev ``` ## Building -To create a production version of your app: - ```sh -npm run build -``` - -You can preview the production build with `npm run preview`. - -> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment. +pnpm run build +``` \ No newline at end of file diff --git a/src/lib/schemas/passwordReset.ts b/src/lib/schemas/passwordReset.ts new file mode 100644 index 0000000..865fd17 --- /dev/null +++ b/src/lib/schemas/passwordReset.ts @@ -0,0 +1,5 @@ +import * as z from 'zod'; + +export const resetPasswordSchema = z.object({ + email: z.email() +}) \ No newline at end of file diff --git a/src/routes/auth/resetPassword/+page.svelte b/src/routes/auth/resetPassword/+page.svelte new file mode 100644 index 0000000..88f5b5e --- /dev/null +++ b/src/routes/auth/resetPassword/+page.svelte @@ -0,0 +1,104 @@ + + + + + Password reset + Enter your email below to reset your password + + + + + +
+
+
+ + +
+
+
+
+ + +

{error}

+
+