Skip to content

reysmerwvr/exchange-api

Repository files navigation

Exchange API application

This is the API for exchange app.

Requirements

  • Node.js >= 8.0.0
  • npm >= 3.0.0

Version

1.0.0

Installation

Download zip file and extract it latest pre-built release. Or clone the repository and cd into it.

Exchange-API uses a number of open source projects to work properly:

Install the dependencies and start the server.

Setup

npm i -g @adonisjs/cli

Install the dependencies.

cd exchange-api

npm install

cp .env.example .env

adonis key:generate

If you don't have .env file you can use the example one. Just rename .env.example to .env. Enter your configuration here. (MySQL Database Connection, Applicacion Name, Environment)

Migrations

Run the following command to run startup migrations.

adonis migration:run

Seeds

Run the following command to run startup seeds.

adonis seed

After run seeds, use one user's emails seeded in database as credentials to log in to application. e.g.

{ "email": "bo@suavdeg.gw", "password": "12345678" }

Run

Run the following command to start the development server

adonis serve --dev

Wiki

Wiki API Docs Wiki.