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.
git clone https://github.com/fitri-hy/node-react-framework.git
cd node-react-framework
npm install
npm start
- 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)
- Upload the dist folder and its contents to hosting (Node Server required)
- Atur
backend/server.js
sebagai file Node Server - Project is ready
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
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.
git clone https://github.com/fitri-hy/node-react-framework.git
cd node-react-framework
npm install
npm start
- 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)
- Upload folder
dist
beserta isinya ke hosting (Diperlukan Node Server) - Tetapkan
backend/server.js
sebagai file Node Server - Proyek sudah siap
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