Skip to content

Postr-Inc/Vader.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vader.js

Vader.js A reactive framework for building fast and scalable web applications

GitHub license npm version

Installation

npx vaderjs @latest

Project Setup

Create a pages folder - which allows you to have nextjs page like routing via buns file based router

Tip: Each folder can be deep nested up to 4 levels!

/pages/index.jsx = /
/pages/home/[page].jsx  = /home/:page
/pages/path/index.jsx = /path/
/pages/test/[[...catchall]]/index.jsx = /path/test/*
/pages/route/[param1]/[param2].jsx = /path/route/:param1/:param2

Keyword folders - all files are passed from these folders to the build folder

1. app - used for jsx route files 
2. public - used for anything / css / json etc

Define your config

import defineConfig from "vaderjs/config";

export default defineConfig({
    port: 3000,
    host: 'localhost', 
    hot_reload: true,
})