Skip to content

Commit

Permalink
Move the content of the api folder to the root of the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyrkan committed Apr 4, 2017
1 parent 38ab333 commit 827046c
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 12 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -6,7 +6,6 @@ logs/*
.maestro.yml
automation/bin/ansible-deploy
vendor/
/api/config/env.json

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
Expand Down
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -165,14 +165,14 @@ Please choose one of the following install option:

<details open="1">
<summary>Install with yarn</summary>
From the `api/` folder:
From the root folder:
```sh
yarn
```
</details>
<details>
<summary>Install with npm</summary>
From the `api/` folder:
From the root folder:
```sh
npm install
```
Expand All @@ -182,16 +182,16 @@ npm install

<details open="1">
<summary>Launch with pm2</summary>
From the `api/` folder:
From the root folder:
```sh
pm2 start app.js --name="mockiji-api" -- --api-base-path ../mocks
pm2 start app.js --name="mockiji-api"
```
</details>
<details>
<summary>Launch with Node</summary>
From the `api/` folder:
From the root folder:
```sh
node app --api-base-path ../mocks
node app
```
</details>
</details>
Expand Down Expand Up @@ -228,7 +228,7 @@ Usage: `mockiji --port 8001 --api-base-path ./my-mocks/`
| logger-level | ['trace', 'debug', 'info', 'warn', 'error', 'fatal'] | warn | Logs level |

### Configuration file
The whole [node-convict configuration schema](https://github.com/mozilla/node-convict#the-schema) can be found in the `api/src/utils/configuration.js` file.
The whole [node-convict configuration schema](https://github.com/mozilla/node-convict#the-schema) can be found in the `src/utils/configuration.js` file.

You can override the default values by specifying a JSON configuration file when running Mockiji, e.g. `mockiji --config-file mockiji.json`.

Expand All @@ -243,7 +243,7 @@ As an example, using a config file:
{
"logger": {
"name": "api-mockiji",
"filepath": "../logs/api-mockiji.log",
"filepath": "./logs/api-mockiji.log",
"level": "warn",
"type": "rotating-file",
"period": "1d",
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions automation/bin/install
Expand Up @@ -20,11 +20,9 @@ echo INSTALL mockiji
#hook pre
pre_bin

pwd
cd api
npm install

pm2 start app.js --name="mockiji-api" -- --config-file ../../mocks/data/dev.json
pm2 start app.js --name="mockiji-api" -- --config-file ../mocks/data/dev.json
pm2 save

#hook post
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 827046c

Please sign in to comment.