Giter Club home page Giter Club logo

fireshoot2d's Introduction

Node-React Template ✏️

This is a template for NodeJS projects with Express and React, using Webpack for the frontend. 🚀

Setup

  1. Clone the repository:

    git clone https://github.com/RodnyE/node-react-template.git
  2. Rename the buildDependencies property in package.json to devDependencies.

  3. Install the dependencies:

    npm install
  4. Start the development server:

    npm test

Structure 📁

The project structure is as follows:

  • src/: Contains the frontend React code.
  • serv/: Contains the backend NodeJS code.
  • public/: Contains the static files served by Express.
  • dist/: Contains the bundled files generated by Webpack.

Configuration ⚙️

  • webpack.config.js: Webpack configuration file.
  • .babelrc: Babel configuration file.
  • postcss.config.js: PostCSS configuration file.

Dependencies 📦

  • NodeJS
  • Express
  • React
  • Webpack and related plugins (listed in buildDependencies in package.json)

Development 👨‍💻

To start the development server:

npm test

This command will run both the backend server and the frontend development build using Webpack. Any changes made in the code will automatically trigger a rebuild.

Production 🚀

To build the project for production:

npm run build

This command will generate the optimized production build in the dist/ directory.

To start the production server:

npm start

Make sure to set the appropriate environment variables in a .env file or in your hosting environment.

Contributing 🤝

Feel free to contribute to this project by creating issues or submitting pull requests. Your contributions are highly appreciated.


♥️ Code by Rodny Estrada

fireshoot2d's People

Contributors

thenewestnewbie avatar rodnye avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.