The aim of this project; A nodejs project is intended to create the framework structure, to establish the necessary structure, architecture, and to do this in a regular, readable form.
This is a bash script. For this reason, Mac OS X and Unix works on all operating systems.
myProject/
├─ bin
| ├─ wwww #build and start server file
├─ public
│ ├─ images
│ ├─ js
│ ├─ stylesheets
├─ src/
│ ├── api/
│ ├── controllers/
│ │ ├── index-controller.js
│ ├── helpers/
│ │ ├── connection.js
│ │ ├── utils.js
│ │ ├── types.js
│ ├── middleware/
| | ├── exception-middleware.js
│ ├── models/
│ ├── views/
| | ├── index.ejs
│ ├── app.js
│ ├── config.json
├─ test/
├─ package.json
└─
Clone this repository.
git clone https://github.com/ryuz4k1/OzzGenerator.git
bash OzzScript.sh
or
./OzzScript.sh
Here we have to make a few changes manually. Go to package.json and replace the relevant section with the following.
"scripts": {
"start": "node ./bin/www",
"dev": "nodemon ./bin/www"
}
"main": "index.js"
npm start
On the terminal screen you will see;
Server is running on port: 5000