0.0.29 • Published 2 years ago
nopeus v0.0.29
Nopeus
Nopeus is a simple framework for building full stack web apps using NodeJS, React and GraphQL.
:warning: Nopeus is still highly experimental and not ready to be used in production |
---|
Nopeus (finnish) noun
Pronunciation: no‧pe‧us | ˈno̞pe̞us̠
Meaning: velocity, speed, swiftness, quickness, rapidity
Getting started
Intallation
npm i nopeus
Usage
- Create a
nopeus.config.ts
file in the root of your project
import { defineConfig } from 'nopeus'
import path from 'path'
import makeSchema from 'nexus'
import * as types from './types'
const schema = makeSchema({ types })
export default defineConfig({
schema,
assetsPath: path.resolve(__dirname, './static'),
indexPath: path.resolve(__dirname, './index.html')
})
- Update the scripts section of your
package.json
"scripts": {
"start": "nopeus start",
}
Local development (with vite)
For local development you can also use the included vitePlugin (if you are using vite).
// vite.config.ts
import { defineConfig } from 'vite'
import { nopeusVitePlugin } from 'nopeus'
// https://vitejs.dev/config/
export default defineConfig({
// ...otherOptions
plugins: [nopeusVitePlugin()]
})
Deploy as serverless function (to Vercel)
// api/index.ts
import makeSchema from 'nexus'
import { createServer } from 'nopeus'
import * as types from './types'
const schema = makeSchema({ types })
export default createServer({ schema, serveStatic: false })
Deploy to production (as NodeJS app)
// server.ts
import { startServer } from 'nopeus/utils'
startServer()
API
TODO...
0.0.29
2 years ago
0.0.28
2 years ago
0.0.27
2 years ago
0.0.26
2 years ago
0.0.25
2 years ago
0.0.24
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago
0.0.21
2 years ago
0.0.20
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.11
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago