Skip to content

Built with Sveltekit, Skeleton UI, Tailwind Css, Cloudflare D1, Cloudflare R2, Cloudflare Pages, Drizzle Orm, Lucia Auth, Wrangler, Zod, Turnstile

Notifications You must be signed in to change notification settings

elfakiri2023/coolresume

Repository files navigation

Please note that this is a work in progress

Cool Resume

Craft, share, and showcase your professional story easily, saving time and hassle.

Technologies used:

Getting Started

1. Clone the Repository

git clone https://github.com/elfakiri2023/coolresume.git
cd coolresume

2. Install Dependencies

npm install

3. Configure Cloudflare

  • Login:

    wrangler login

    Follow the prompts to log in to your Cloudflare account.

  • Create Project

    wrangler pages project create <PROJECT_NAME>

    You can create a project via the Cloudflare dashboard or using the CLI.

  • Create Database:

    wrangler d1 create <DATABASE_NAME>

    You can create a database via the Cloudflare dashboard or using the CLI.

  • Create R2 Bucket:

    wrangler r2 bucket create <NAME>

    You can create a bucket via the Cloudflare dashboard or using the CLI.

4. Configure Wrangler

  • Copy wrangler.toml.example to wrangler.toml and update it with your database name, ID, and R2 bucket name.

5. Generate Turnstile Keys

  • Navigate to Turnstile section in your Cloudflare dashboard. Add your site and obtain the Site Key and Secret Key provided.

6. Configure Environment Variables

Modify the environment variables by copying .env.example to .env and updating it with necessary details, including the keys obtained from Turnstile and specifying the CDN used for displaying stored images (either a custom domain or the one provided with Cloudflare R2).

7. Setup the Database

run

npm run db:gen

then

npm run db:mig:local

and to view and edit the Database in your browser using Drizzle Studio, run

db:studio

7. Local Development

To bind the D1 database and R2 bucket locally, run:

npm run proxy

In another command line window, run:

npm run dev

8. Deployment

For database migration to production, run

db:mig:prod

Then, deploy your project by running

npm run deploy

About

Built with Sveltekit, Skeleton UI, Tailwind Css, Cloudflare D1, Cloudflare R2, Cloudflare Pages, Drizzle Orm, Lucia Auth, Wrangler, Zod, Turnstile

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published