node-react-app

1.0.4 • Public • Published

Node-React Framework (EN)

Fullstack Framework with a backend using Node.js and a frontend using React.js running on one server combines the power of these two technologies to build modern and efficient web applications.

Instalation

Use NPX

npx node-react-app my-app

Use Git Clone

git clone https://github.com/fitri-hy/node-react-framework.git
cd node-react-framework
npm install
npm start

Build

  • Before building, you are required to add all the backend required dependencies into dep-build.txt
  • Next Build: npm run build
  • Build Project Settings: Open dist/backend/.env file and change to: DIST_PATH=../ (Frontend path adjustment)

Production

  • Upload the dist folder and its contents to hosting (Node Server required)
  • Atur backend/server.js sebagai file Node Server
  • Project is ready

Folder Structure

node-react-framework/
│
├── backend/
│   ├── routes/
│   │   └── Api.js
│   └── server.js
├── frontend/
│   ├── public/
│   │   ├── images/
│   │   │   └── logo.png
│   │   └── index.html
│   ├── src/
│   │   ├── pages/
│   │   │   └── App.js
│   │   ├── styles.css
│   │   └── index.js
│   ├── .bablerc
│   └── webpack.config.js
├── package-lock.json
├── package.json
└── README.json


Node-React Framework (ID)

Fullstack Framework dengan backend menggunakan Node.js dan frontend menggunakan React.js yang berjalan di satu server menggabungkan kekuatan kedua teknologi ini untuk membangun aplikasi web yang modern dan efisien.

Instalasi

Menggunakan NPX

npx node-react-app my-app

Menggunakan Github Klon

git clone https://github.com/fitri-hy/node-react-framework.git
cd node-react-framework
npm install
npm start

Membangun

  • Sebelum membangun, Anda diharuskan menambahkan semua dependensi backend yang diperlukan ke dep-build.txt
  • Lanjutkan Build: npm run build
  • Bangun Pengaturan Proyek: Buka file dist/backend/.env dan ubah menjadi: DIST_PATH=../ (_Penyesuaian jalur frontend)

Produksi

  • Upload folder dist beserta isinya ke hosting (Diperlukan Node Server)
  • Tetapkan backend/server.js sebagai file Node Server
  • Proyek sudah siap

Struktur Folder

node-react-framework/
│
├── backend/
│   ├── routes/
│   │   └── Api.js
│   └── server.js
├── frontend/
│   ├── public/
│   │   ├── images/
│   │   │   └── logo.png
│   │   └── index.html
│   ├── src/
│   │   ├── pages/
│   │   │   └── App.js
│   │   ├── styles.css
│   │   └── index.js
│   ├── .bablerc
│   └── webpack.config.js
├── package-lock.json
├── package.json
└── README.json

Package Sidebar

Install

npm i node-react-app

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

275 kB

Total Files

18

Last publish

Collaborators

  • fitri-hy