0.4.6 • Published 3 months ago

modelence v0.4.6

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
3 months ago

Build Status

Full-stack JavaScript framework for AI startups

Dev Setup

Run npm install first to install packages.

Use npm run dev to keep rebuilding the package on every change for linking in local dev mode.

App setup

  • Create the following folder structure in your Node project:
src/
src/client/index.html
src/client/index.css
src/client/index.tsx
src/client/routes.ts
src/server/app.ts
  • Install dependencies:
npm install --save modelence
npm install --save react react-dom react-router-dom
npm install --save-dev @types/react @types/react-dom
npm install --save-dev tsx nodemon
npm install --save-dev tailwindcss postcss autoprefixer
  • Add the following scripts to your package.json:
"scripts": {
  "dev": "nodemon --exec tsx src/server/app.ts"
}
  • Create a tsconfig.json file in the root of your project with the following content:
{
  "compilerOptions": {
    "outDir": "./.modelence/build/",
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    },
    "sourceMap": true,
    "noImplicitAny": true,
    "module": "NodeNext",
    "esModuleInterop": true,
    "skipLibCheck": true,
    "target": "ES2020",
    "lib": [
      "ES2020",
      "DOM",
      "WebWorker"
    ],
    "jsx": "react-jsx",
    "allowJs": true,
    "moduleResolution": "bundler",
    "strict": false,
    "noEmit": true,
    "incremental": true,
    "resolveJsonModule": true,
    "isolatedModules": true,
    "plugins": [
      {
        "name": "next"
      }
    ]
  },
  "include": [
    "**/*.ts",
    "**/*.d.ts",
    "**/*.tsx"
  ],
  "exclude": [
    "node_modules"
  ]
}

Create a tailwind.config.js file in the root of your project with the following content:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/client/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
  darkMode: 'class',
}

Create a postcss.config.js file in the root of your project with the following content:

/** @type {import('postcss-load-config').Config} */
export default {
  plugins: {
    tailwindcss: {},
  },
};

Documentation

Documentation | API Reference

(For open-source contributors: To generate docs when developing locally, run npm run docs.)

0.4.6

3 months ago

0.4.5

3 months ago

0.4.3

3 months ago

0.4.2

3 months ago

0.3.0

4 months ago

0.2.1

4 months ago

0.2.0

4 months ago

0.1.11

4 months ago

0.1.10

4 months ago

0.1.9

4 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago