A custom JSX server-first toy javascript framework made in Bun and Typescript.
- Linux or Max is preferable but Windows should be just fine.
- Bun v1 or later for Windows, Mac, Linux: https://bun.sh/.
- Everything else is listed in package.json.
- Clone the repo using:
git clone https://github.com/Souvlaki42/jsx-framework.git
. - Install dependencies from package.json using:
bun install
. - Use
bun start
to execute the server andbun dev
to do the same but have hot reloading enabled. - Optional: you can create a
.env.local
file and definePORT
,PAGES_DIR
,PUBLIC_DIR
andNODE_ENV
. - Here are their default values:
PORT=3000
PAGES_DIR="./src/pages"
PUBLIC_DIR="./public"
NODE_ENV="development"
Project's progress board: https://github.com/users/Souvlaki42/projects/1
- Prefer double quotes instead of single quotes when possible
- Prefer 2 spaces over tabs or anything else
- Prefer camelCase when possible
The only thing that the framework currently does is to serve pages like this: