Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/firmanjs/express-mongodb-mocha-chai
Boilerplate expressjs with mongose
https://github.com/firmanjs/express-mongodb-mocha-chai
docker docker-compose expressjs mocha mocha-chai mocha-tests mongoose unit-testing
Last synced: 21 days ago
JSON representation
Boilerplate expressjs with mongose
- Host: GitHub
- URL: https://github.com/firmanjs/express-mongodb-mocha-chai
- Owner: firmanJS
- Created: 2020-03-09T02:17:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:34:41.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T10:03:12.236Z (almost 2 years ago)
- Topics: docker, docker-compose, expressjs, mocha, mocha-chai, mocha-tests, mongoose, unit-testing
- Language: JavaScript
- Homepage:
- Size: 324 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boilerplate express mongodb
### This app for the Boilerplate express mongodb
[![Maintainability](https://api.codeclimate.com/v1/badges/dfb2ca2f2e1db6fdfab2/maintainability)](https://codeclimate.com/github/firmanJS/express-mongodb-mocha-chai/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/dfb2ca2f2e1db6fdfab2/test_coverage)](https://codeclimate.com/github/firmanJS/express-mongodb-mocha-chai/test_coverage)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/232af6534921479f8212b79dfbe6db2b)](https://www.codacy.com/manual/firmanJS/express-mongodb-mocha-chai?utm_source=github.com&utm_medium=referral&utm_content=firmanJS/express-mongodb-mocha-chai&utm_campaign=Badge_Grade)### How To run
#### Copy environment variable
```sh
cp .env-sample .env
```#### Run manualy via npm
```sh
npm installnpm run start
```#### Fill in the copied environment earlier
```sh
#MONGO SETUP
MONGO_DB_URI=mongose://mongodb:27017/mocha-chai # URL MONGOSE
MONGO_INITDB_ROOT_USERNAME= # username
MONGO_INITDB_ROOT_PASSWORD= # password
MONGODB_PORT=27017#auth mongoDB Management
ME_CONFIG_MONGODB_SERVER=mongose
ME_CONFIG_BASICAUTH_USERNAME=# username
ME_CONFIG_BASICAUTH_PASSWORD=# password
ME_CONFIG_MONGODB_PORT=8081#image docker
MNG_DATABASE=mongo-express
MNG_DB=mongoseAPP_PORT=3000
JWT_SECRET= # jwt secret key name here
APP_ENV=development
```#### Run with docker-compose
```sh
docker-compose up --build
```#### Or run with background process
```sh
docker-compose up --build -d
```#### Run unit testing
```sh
docker-compose exec apps npm run test
```## Enjoy :yum: