Socket
Socket
Sign inDemoInstall

nopeus

Package Overview
Dependencies
592
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nopeus

Nopeus is a simple framework for building full stack web apps using NodeJS, React and GraphQL.


Version published
Weekly downloads
1
decreased by-98.15%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

  1. 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')
})

  1. 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...

FAQs

Last updated on 26 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc