npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

scaffold-mernn

v1.0.1

Published

a scaffold for nodejs apps and web3 apps with full integration, authentication and can use any database of your choice, sql and nosql

Downloads

130

Readme

scaffold-mernn

This is a scaffold generator for a fill stack nodejs project which follows the appropriate mvc architecture. It consists of technologies such as

  • react
  • next.js
  • express
  • sequelize
  • mongoose
  • resend
  • mongodb
  • mysql

It consists of a frontend and a backend and you can choose the stack you want to use for your project.

Features

  • The scaffold provides full authentication using cookies and gives you wide options of database to use from mongodb to sql databases.
  • Provides a set of cli tools to make creation of files such as pages, sercvice and components files easier.
  • It attempts to open files after creation using vs code if it is installed or vim.

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • Yarn or npm

Installation

  1. Install the package
  yarn global add mern-menn

OR

  npm install mern-menn -g
  1. run mern-menn - This will ask your type of frontend and name of the project to generate the scaffold and install the dependencies for you.

CLI tools

This project includes several scripts to help with development and management of the project. Below is an explanation of each script:

Backend

  • yarn create:controller: This command creates a new controller in the server workspace.

    yarn create:controller
  • yarn create:route: This command creates a new route in the server workspace.

    yarn create:route
  • yarn create:model: This command creates a new model in the server workspace.

    yarn create:model
  • yarn create:service: This command creates a new service in the server workspace.

    yarn create:service
  • yarn start: This command starts the server workspace.

    yarn start

Frontend

  • yarn create:page: This command creates a new page in the frontend workspace.

    yarn create:page
  • yarn create:ui: This command creates a new UI component in the frontend workspace.

    yarn create:ui
  • yarn create:context: This command creates a new context in the frontend workspace.

    yarn create:context
  • yarn dev: This command starts the development server for the frontend workspace.

    yarn dev
  • yarn build: This command builds the frontend workspace for production.

    yarn build
  • yarn client:start: This command starts the frontend workspace in production mode.

    yarn client:start
  • yarn lint: This command runs the linter for the frontend workspace.

    yarn lint

Usage

To run any of these scripts, use the following command format:

yarn <command>

For example, to create a new controller in the server workspace, you would run:

yarn create:controller

Configuring server

Edit the server.config.ts to configure the type of database you would like to use and the dialect for your sql database if you choose sql.

NB: The server.config.ts controls what kind of model will be created.

Future updates

Future updates includes

  • More methods of authentication including face, fingerprint authentications, more social auths.
  • More authorization methods for the backend like authorization headers and more.
  • More advanced cli scripts to make files managment much more easier.
  • Scaffolds for Web3 projects.