An open API service indexing awesome lists of open source software.

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

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)