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

https://github.com/kalana99/node-backend-framework

NodeJS backend template for a MERN stack application with sample Models, Controllers, Routes and Test configurations
https://github.com/kalana99/node-backend-framework

backend expressjs javascript mongodb nodejs rest-api web-development

Last synced: 2 months ago
JSON representation

NodeJS backend template for a MERN stack application with sample Models, Controllers, Routes and Test configurations

Awesome Lists containing this project

README

          

# node-backend-framework

# Instructions

1. Add the ".env" file with the neccessary connection strings and secret keys to the project directory

2. Run below command from the project directory to update the server dependencies to their latest versions
### `npm run update_dep`

3. Run below commands one by one from the project directory to install the packages
### `npm install`
### `npm run install-client`

## App deployment options (all commands should run from the project directory)

1. To run the "front-end" alone
### `npm run client`

2. To run the "back-end" alone
### `npm run server`

### 2. To run the full application
### `npm run dev`

### 3. To run tests
### `npm test`

### 4. To run a specific test file
### `npm test -- bar.test.js`

### 5. To re-generate the test coverage
### `npm test -- --coverage`