Craft, share, and showcase your professional story easily, saving time and hassle.
git clone https://github.com/elfakiri2023/coolresume.git
cd coolresume
npm install
Login:
wrangler login
Follow the prompts to log in to your Cloudflare account.
Create Project
wrangler pages project create coolresume
You can create a project via the Cloudflare dashboard or using the CLI.
Create Database:
wrangler d1 create coolresume_db
You can create a database via the Cloudflare dashboard or using the CLI.
Create R2 Bucket:
wrangler r2 bucket create coolresume-bucket
You can create a bucket via the Cloudflare dashboard or using the CLI.
wrangler.toml.example
to wrangler.toml
and update it with your database name, ID, and R2 bucket name.Modify the environment variables by copying .env.example
to .env
and updating it with necessary details
run
npm run db:gen
then run
npm run db:mig:local
and to view and edit the Database in your browser using Drizzle Studio, run
db:studio:local
To bind the D1 database and R2 bucket locally, run:
npm run proxy
In another command line window, run:
npm run dev
For database migration to production, run
db:mig:prod
Then, deploy your project by running
npm run deploy