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

mern-stack-app-template

v1.0.4

Published

A MERN Stack Template created to easily get started with developing a Full Stack Web App using the complete MERN Stack

Downloads

17

Readme

MERN Stack App Template

GitHub release Quality Gate Status Build Status GitHub license


GitHub issues GitHub forks GitHub stars GitHub contributors Bugs Maintainability Rating Security Rating Vulnerabilities GitHub commits since latest release

To setup the project, use npx and NOT npm i

Run the following command in your terminal:

npx mern-stack-app-template my-mern-app

or to setup in root folder

npx mern-stack-app-template .

Getting Started

To clone the project, Run the following command in your terminal:

git clone https://github.com/Vishal-Katta/MERN-stack-template.git
cd MERN-stack-template

Configuration

You will need latest version of NodeJS and MongoDB installed locally on your machine.

To configure this application for use of MongoDB, you should change the Environment variable in .env file with your database url.

Quick Note: This project is equiped with a basic API setup using Mongoose. It is expected that you will modify this API backend as necessary to suite your project. DO NOT count on and use the current API's USER SCHEMA as it is only meant as a placeholder and is far from a complete model.

Installation

To get started with this project, you'll want to install the required dependencies and The following command installs both client and server packages including root directory package.json:

npm run setup

Running the server

Starting the project

To run whole project ( backend and frontend ) you can use the following command:

npm run start

To start just the backend MonogoDB server and work on the API you can run:

npm run server

To start just the frontend and work on the UI, you can run:

npm run client

To run backend on build file of frontend, you can run:

npm run build:preview

Dependencies

A list of dependencies used in the project, along with brief explanations for each.

Backend Dependencies

  • Express
    Express is a fast, unopinionated, minimalist web framework for Node.js, used for building web applications and APIs.
  • Mongoose
    Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js, providing a higher-level abstraction for MongoDB operations.
  • jsonwebtoken
    jsonwebtoken is an implementation of JSON Web Tokens (JWT) for authentication and authorization.
  • Nodemon
    Nodemon is a utility that monitors for changes in files and automatically restarts the server when any changes occur during development.
  • bcrypt
    bcrypt is a password-hashing function library used for hashing passwords before storing them securely.
  • cors
    CORS is a Node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.
  • body-parser
    body-parser is a Node.js body parsing middleware, used for parsing incoming request bodies in a middleware before handling.
  • dotenv
    dotenv is a zero-dependency module that loads environment variables from a .env file into process.env.
  • morgan
    morgan is an HTTP request logger middleware for Node.js, used for logging requests to the server.
  • path
    path is a Node.js module that provides utilities for working with file and directory paths.
  • colors
    colors is a Node.js package for adding color to terminal text output.

Frontend Dependencies

  • React
    React is a JavaScript library for building user interfaces, developed and maintained by Facebook.

  • React DOM
    React DOM is the package responsible for rendering React components in the DOM.

  • React Router DOM
    React Router DOM provides declarative routing for React applications, enabling navigation between different components.

  • Redux Toolkit
    Redux Toolkit is the official toolset for efficient Redux development, offering simplified Redux setup and improved developer experience.

  • React Redux
    React Redux is the official React bindings for Redux, allowing React components to interact with the Redux store.

  • Axios
    Axios is a promise-based HTTP client for making HTTP requests from the browser.

  • Material UI
    Material UI is a popular React UI framework that provides pre-designed React components following the Material Design guidelines.

  • Tailwind CSS Forms
    Tailwind CSS Forms provides styles and utilities for styling forms in Tailwind CSS.

  • React Toastify
    React Toastify is a notification library for React applications, providing customizable toast notifications.

  • Emotion
    Emotion is a popular CSS-in-JS library for styling React components.

  • Material UI Icons
    Material UI Icons provides a collection of high-quality icons for use with Material-UI components.

  • React Icons
    React Icons provides a collection of popular icon libraries as React components for easy integration.

  • Redux Logger
    Redux Logger is a middleware for Redux that logs actions and state changes, useful for debugging Redux applications.

  • Redux Thunk
    Redux Thunk is a Redux middleware that allows dispatching asynchronous actions, enabling more complex logic in Redux.

  • Tailwind Scrollbar Hide
    Tailwind Scrollbar Hide is a utility for hiding scrollbars in Tailwind CSS, useful for customizing scrollbar appearance.