https://github.com/toweringcloud/express-node-starter
node based fullstack express web app using mongodb and pug
https://github.com/toweringcloud/express-node-starter
gridfs mongodb
Last synced: about 1 month ago
JSON representation
node based fullstack express web app using mongodb and pug
- Host: GitHub
- URL: https://github.com/toweringcloud/express-node-starter
- Owner: toweringcloud
- License: mit
- Created: 2025-06-03T12:13:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-24T08:39:24.000Z (12 months ago)
- Last Synced: 2025-06-24T09:43:35.885Z (12 months ago)
- Topics: gridfs, mongodb
- Language: JavaScript
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-express-starter
node based express web app using mongodb and pug
## how to run
### setup
- install latest nodejs runtime
```sh
$ node -v
v22.16.0
$ npm -v
10.9.2
```
### configure
- install packages with npm packager
```sh
$ npm init
$ npm i
```
- create runtime variables
```sh
$ cat .env
API_PORT_NO=4000
COOKIE_SECRET={YOUR_COOKIE_SECRET}
DB_URL=mongodb://127.0.0.1:27017/movie
GH_API_URL=https://api.github.com
GH_AUTH_URL=https://github.com/login/oauth
GH_CLIENT_ID={YOUR_GITHUB_CLIENT_ID}
GH_CLIENT_SECRET={YOUR_GITHUB_CLIENT_SECRET}
```
### launch
- update nodemon setting
```json
{
"ignore": ["webpack.config.js", "src/client/*", "assets/*"],
"exec": "babel-node src/index.js"
}
```
- run nodejs app with development mode
```sh
$ npm run dev
```
### test
- download sample media file
- [Pexcel](https://www.pexels.com)
- [Others](https://www.sample-videos.com)