├── .env.example ├── .gitignore ├── README.md ├── app ├── controllers │ ├── Controller.js │ ├── HomeController.js │ └── UploadController.js ├── index.js ├── middlewares │ ├── logMiddleware.js │ └── middleware.js ├── models │ ├── fileUpload.js │ └── user.js └── routes │ ├── api │ └── index.js │ └── index.js ├── config ├── database.js └── index.js ├── package.json └── server.js /.env.example: -------------------------------------------------------------------------------- 1 | APP_PORT=3000 2 | DATABASE_URL= -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/README.md -------------------------------------------------------------------------------- /app/controllers/Controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/controllers/Controller.js -------------------------------------------------------------------------------- /app/controllers/HomeController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/controllers/HomeController.js -------------------------------------------------------------------------------- /app/controllers/UploadController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/controllers/UploadController.js -------------------------------------------------------------------------------- /app/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/index.js -------------------------------------------------------------------------------- /app/middlewares/logMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/middlewares/logMiddleware.js -------------------------------------------------------------------------------- /app/middlewares/middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/middlewares/middleware.js -------------------------------------------------------------------------------- /app/models/fileUpload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/models/fileUpload.js -------------------------------------------------------------------------------- /app/models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/models/user.js -------------------------------------------------------------------------------- /app/routes/api/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/routes/api/index.js -------------------------------------------------------------------------------- /app/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/app/routes/index.js -------------------------------------------------------------------------------- /config/database.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | url: process.env.DATABASE_URL, 3 | }; 4 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/config/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/package.json -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vahidrezazadeh/example-nodejs-api/HEAD/server.js --------------------------------------------------------------------------------