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

create-app-react-express

v1.2.1

Published

Creates a react & express app

Downloads

8

Readme

create-app-react-express

The fastest and easiest way to get started with a react & express project.

Installation

Use the package manager npm to install create-app-react-express globally, so you can use it anywhere without having to download it again. Use the following command:

npm install create-app-react-express -g

Usage

# Main function to install all the neccessary files
create-app-react-express [path_to_folder] # Folder exists it should be empty

# Commands after creating an react & express application
cd [path_to_folder] # Change the directory to the project folder
npm run build # This will compile reacts code and watch for changes
npm run start # This will start the express server on port 3000
npm run dev   # This will start the express server on port 3000 with nodemon

# Optional scripts (if something gets stuck)
npm run killNodeWin # This will kill all node processes for windows
npm run killNodeLinux # This will kill all node processes in Linux and Mac Os

Project Structure

├── package.json
├── package-lock.json
├── webpack.config.js     # Webpack config file used for bundling up react code
├── robots.txt            # Contains instructions for SEO bots
├── .gitignore            # List of all ignored files and folders
├── .env                  # Environment varibales which are ignored (private)
│
├── public                # This directory is visible by the web
│   ├── index.html        # Main entry HTML file (includes jQuery)
│   ├── css                  
│   │   └── styles.css    # Main css stylesheet
│   ├── js
│   │   ├── index.js      # Main js file (not react)
│   │   └── bundle.js     # React bundled up code
│   └── imgs
│       └── icon.png      # image/x-icon for the website
│
├── server                # This directory contains the server code
│   │                     # (it is not visible by the web)
│   └── app.js            # Node entry file and the server js
│   └── api               # This directory contains your api files
│       └── ...
│
├── src                   # This directory contains the react code
│   │                     # (it is not visible by the web)
│   └── App.jsx           # Main entry file for bundling up react code
│   └── components        # This directory contains all react components
│       └── ...
│
├── node_modules          # Installed node modules
│   └── ...
│
└── README.md

Note

If you would like to change the react entry file or bundle.js output location navigate to the webpack.config.js file. More information can be found here.

Support

If you have any suggestions or found any bugs, please email me at: [email protected]

License

MIT