Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sodhanalibrary/ftmocks-server


https://github.com/sodhanalibrary/ftmocks-server

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# FtMocks

## Overview
**FtMocks** is a Node.js application that will simplify your maintainance of mock data. This project was created to acheive full code coverage for your frontend project.

## Features
- Easy maintanance of mock data for test cases
- Default mock data for all test cases
- Mock server for the test case

## Documentation
- Please visit FtMocks(www.ftmocks.com)

## Getting Started

### Prerequisites
To run this project, ensure you have the following installed on your machine:
- [Node.js](https://nodejs.org/) (version 20 or later)
- [npm](https://www.npmjs.com/) (usually included with Node.js)

### Installation
1. Clone the repository:
```bash
git clone https://github.com/SodhanaLibrary/ftmocks-server.git
```

2. Navigate into the project directory:
```bash
cd ftmocks-server
```

3. Install dependencies:
```bash
npm i
```

### Configuration
1. Create my-project.env file for your project

2. Create a my-project.env file in the project root.
```bash
MOCK_DIR=/Users/srinivas.dasari/Documents/CursorWorkSpace/ftmocks-server/sample/my-project
PORT=5000
MOCK_DEFAULT_FILE=default.json
MOCK_DEFAULT_DIR=defaultMocks
MOCK_TEST_FILE=tests.json
```

### Running the Project
To start the project, use:
```bash
npm start my-project
```

### Contributing
Contributions are welcome! Please fork this repository and create a pull request.

1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
3. Commit your Changes (git commit -m 'Add some AmazingFeature')
4. Push to the Branch (git push origin feature/AmazingFeature)
5. Open a Pull Request