Skip to content

sakibhasancse/Postgres-App

Repository files navigation

https://documenter.getpostman.com/view/10778944/TzCMc7iz

NodeJs & ReactJS - Mern-App

full-stack-mern-app

Getting started

This is a basic API skeleton written in JavaScript ES6. Very useful to building a RESTful web APIs

This project will run on NodeJs using MongoDB as database. I had tried to maintain the code structure easy as any beginner can also adopt the flow and start building an API. Project is open for suggestions, Bug reports and pull requests. ]

Software Requirements

  • Node.js 15+

How to install

Using Git (recommended)

Setting up environments

  1. You will find a file named congig/config.env on root directory of project.

How to run

Running API server locally

npm run dev

You will know server is running by checking the output of the command npm run dev

Tests

Running Test Cases

npm test

You can set custom command for test at package.json file inside scripts property. You can also change timeout for each assertion with --timeout parameter of mocha command.

Creating new tests

If you need to add more test cases to the project just create a new file in /test/ and run the command.

You can set custom rules for eslint in .eslintrc.json file, Added at project root.

Bugs or improvements

Every project needs improvements, Feel free to report any bugs or improvements. Pull requests are always welcome.

License

This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.