goktugcy /
ExpressTS-Boilerplate-Backend
This project is a basic backend template built using Express.js and TypeScript.
70/100 healthLoading repository data…
goktugcy / repository
This project is a backend boilerplate built using the Hono framework. Cloudfare Workers are used to host the backend. It includes integration with Supabase and handles user authentication and authorization.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This project is a backend boilerplate built using the Hono framework. Cloudfare Workers are used to host the backend. It includes integration with Supabase and handles user authentication and authorization.
After cloning the repository, install the necessary dependencies by running:
bun install
Edit the .wrangler.toml file to include the necessary environment variables:
STAGE = "dev" # dev or prod
# Supabase
SUPABASE_URL=
SUPABASE_SERVICE_KEY=
SUPABASE_ANON_KEY=
.
├── src
│ ├── controllers
│ │ ├── AuthController.ts
│ │ ├── CountryController.ts
│ ├── middlewares
│ │ ├── authMiddleware.ts
│ ├── db
│ │ ├── supabaseClient.ts
│ ├── routes.ts
│ ├── helpers.ts
├── index.ts
├── wrangler.toml
├── package.json
├── README.md
├── tsconfig.json
├── .gitignore
├── bun.lockb
To start the server, run:
bun dev
Deploy the server to Cloudfare Workers by running:
bun run deploy
The boilerplate includes an authentication middleware that checks if the user is authenticated. The middleware is used in the routes.ts file to protect routes that require authentication.
import { authMiddleware } from './middlewares/authMiddleware';
router.get('/countries', authMiddleware, CountryController.index);
Selected from shared topics, language and repository description—not editorial ratings.
goktugcy /
This project is a basic backend template built using Express.js and TypeScript.
70/100 healthmr-ufukgurbuz /
This project is a boilerplate which contains backend (SpringBoot, Hibernate, SQL/NoSQL) and frontend (React/Typescript) technologies.
78/100 healthThe project uses two Supabase clients: supabaseAnon and supabaseService. These clients are created in the getSupabaseClient function in src/db/supabaseClient.ts.
supabaseAnonThe supabaseAnon client is used for operations that do not require elevated privileges. It is created using the anonymous key (SUPABASE_ANON_KEY) and is configured to not automatically refresh tokens, persist sessions, or detect sessions in URLs.
Example usage:
import { getSupabaseClient } from "./src/db/supabaseClient";
const getCountries = async (c: Context) => {
const { supabaseAnon } = getSupabaseClient(c);
let { data: countries, error } = await supabaseAnon.from("countries").select("*");
if (error) {
return c.json({ error: error.message }, 400);
}
return c.json(countries, 200);
};
supabaseServiceThe supabaseService client is used for operations that require elevated privileges, such as authentication and user management. It is created using the service key (SUPABASE_SERVICE_KEY).
Example usage:
import { getSupabaseClient } from "./src/db/supabaseClient";
const login = async (c: Context) => {
const { supabaseService } = getSupabaseClient(c);
const { email, password } = await c.req.json<{ email: string; password: string }>();
const { data, error } = await supabaseService.auth.signInWithPassword({
email,
password,
});
if (error) {
return c.json({ error: error.message }, 400);
}
const accessToken = data.session?.access_token;
const refreshToken = data.session?.refresh_token;
if (!accessToken || !refreshToken) {
return c.json({ error: "Token creation failed" }, 500);
}
setAuthCookies(c, accessToken, refreshToken);
return c.json({ message: "Login successful", accessToken, refreshToken }, 200);
};
This project is licensed under the MIT License - see the LICENSE file for details.
agus-darmawan /
This project is a boilerplate for building RESTful APIs using AdonisJS V6 with PostgreSQL.
22/100 healthayush-sleeping /
A Laravel 12 + ReactJS Full Stack Starter Boilerplate. This is a secure, modular, production-ready base project using Laravel 12 with ReactJS frontend, ideal for building scalable web applications without Blade.
52/100 healthEkans122 /
This is express typescript mongodb starting project for beginners. Very simple and easy to use!
34/100 healthsunilgawai /
This is a Node, Express, TypeScript Server boilerplate for those who don't want to waste their time in creating and setting up their project from scratch. This project containes best file and folder structure for any type of backend application.
55/100 health