cloudflare-planetscale-hono-boilerplate
A boilerplate for building production-ready RESTful APIs using Cloudflare, Hono, and Planetscale
File Explorer
Download Latest Version (.zip)- pre-commit
- pre-push
- createApp.js
- 01_initial.ts
- migrate.ts
- authProviders.ts
- config.ts
- database.ts
- roles.ts
- tokens.ts
- apple.controller.ts
- discord.controller.ts
- facebook.controller.ts
- github.controller.ts
- google.controller.ts
- oauth.controller.ts
- spotify.controller.ts
- auth.controller.ts
- user.controller.ts
- rate-limiter.do.ts
- oauth.factory.ts
- auth.ts
- error.ts
- rate-limiter.ts
- apple-user.model.ts
- discord-user.model.ts
- facebook-user.model.ts
- github-user.model.ts
- google-user.model.ts
- oauth-base.model.ts
- spotify-user.model.ts
- base.model.ts
- one-time-oauth-code.ts
- token.model.ts
- user.model.ts
- auth.route.ts
- index.ts
- user.route.ts
- apple.service.ts
- facebook.service.ts
- github.service.ts
- spotify.service.ts
- auth.service.ts
- email.service.ts
- token.service.ts
- user.service.ts
- oauth.table.ts
- one-time-oauth-code.table.ts
- user.table.ts
- oauth.types.ts
- api-error.ts
- utils.ts
- zod.ts
- auth.validation.ts
- custom.refine.validation.ts
- custom.transform.validation.ts
- custom.type.validation.ts
- user.validation.ts
- index.ts
- authorisations.fixture.ts
- token.fixture.ts
- user.fixture.ts
- apple.test.ts
- discord.test.ts
- facebook.test.ts
- github.test.ts
- google.test.ts
- spotify.test.ts
- auth.test.ts
- index.test.ts
- rate-limiter.test.ts
- user.test.ts
- aws-client-stub.ts
- expect-mock.ts
- index.ts
- mock-client.ts
- clear-db-tables.ts
- test-request.ts
- cloudflare-test.d.ts
- tsconfig.json
- vitest.d.ts
- .dev.vars.example
- .env.example
- .env.test.example
- .eslintignore
- .gitignore
- .prettierignore
- .prettierrc
- bindings.d.ts
- build.js
- eslint.config.js
- jest.config.js
- LICENSE
- package-lock.json
- package.json
- README.md
- TODO.md
- tsconfig.json
- vitest.config.ts
- wrangler.toml.example
# Installation Guide
1. Get the code
git clone https://github.com/OultimoCoder/cloudflare-planetscale-hono-boilerplate
Downloads the entire project code from GitHub to your computer.
cd cloudflare-planetscale-hono-boilerplate
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm init cf-planetscale-app <project-name>
Type this command into your terminal and run it.
npm run dev
Starts the development/run server.
npm run tests
Type this command into your terminal and run it.
npm run tests:coverage
Type this command into your terminal and run it.
npm run lint
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
