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

sandcat

v1.6.0

Published

Sandcat is a command line utility that makes it easy to create starting points for MERN stack applications.

Downloads

17

Readme

Sandcat

Sandcat is a command line utility that makes it easy to create starting points for MERN stack applications.

Installation

We highly recommend you install Sandcat globally so that you can use it anywhere. To do so, run this command below:

$ npm install sandcat -g

Usage

If you would like to see a list of options that Sandcat offers, run this command below:

$ npx sandcat -help

To create a MERN stack application, run:

$ npx sandcat <application_name>

This will create a ready out of the box MERN stack application in the <application_name> directory, no configuration necessary!

MongoDB

To properly set up your MongoDB database, you will need to create an account on the official MongoDB website.

Once you are signed up with MongoDB, create a project and a cluster. You will then need to connect to the cluster and paste the URI code that MongoDB gives you into the default.json file found in the config directory. The file should look like this:

{
  "mongoURI": "mongodb+srv://username:<password>@gymkeeper-z5eot.mongodb.net/test?retryWrites=true&w=majority"
}

Express

In order to start your Express server, navigate to the <application_name> directory and run:

$ npm install
$ npm start

To check if Express is working properly, visit localhost:5000/api/hello_world, you should see Hello World! displaying to the screen.

React

In order to start your React server, you will need to open a new terminal window and navigate to the <application_name>/client directory and run:

$ npm install
$ npm start

To check if React is working properly, visit localhost:3000/, you should see the default React application provided by create-react-app.

Deployment

Sandcat creates applications that are easily pushed to both Github and Heroku!

Github

In order to push your new application to Github, create a new repository and then run these commands:

git add .
git commit -m "Initial commit"
git remote add origin https://github.com/your_username/application_name.git
git push -u origin master

Heroku

In order to push your new application to Heroku, create a new app and then run these commands:

heroku login
heroku git:remote -a application_name
git push heroku master

Example Project

Below are a few links to 'sandcat-test', an example project generated entirely by Sandcat:

Github Repository

Heroku Application