Skip to content

ehavet/falco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

falco-api

pipeline status coverage report

Prerequisites

Before starting to work on the API, you will first need to install the following :

And make sure that :

  • You have been granted an access to the Appenin falco-api gitlab repository
  • You have added your ssh key to gitlab
  • You have a .env file at the root of the project (you can take the .env.example as an example)
  • You will need to use your own Stripe/HelloSign API Key and replace it in your .env. See .env.example for more details in order to set FALCO_API_STRIPE_API_KEY, FALCO_API_HELLO_SIGN_API_KEY, FALCO_API_HELLO_SIGN_CLIENT_ID

Installation

git clone git@gitlab.com:appenin/falco-api.git
cd falco-api
yarn install --frozen-lockfile

Usage

Server

For the API to work properly, you need to have a database running. You can run one locally in Docker with the following command :

yarn containers:db:start

Then, you can launch the API :

yarn start

Or

yarn dev

to start with watch mode. This can be convenient in development mode to avoid restarting manually the server after each modification in the code.

The API can be accessed at http://localhost:8080

For the API documentation, go to http://localhost:8080/documentation

If you already have launched the database locally and need to apply newly created migrations, run :

yarn db:migrate

Or

yarn db:undo

if you need to revert the last migration

Tests

The automated tests can be launched with the command :

yarn test

This will run all the automated tests and generate the appropriate coverage report.

Ah, by the way, you need to have the database running locally before launching the automated tests !

Contributing

Please refer to CONTRIBUTING.md for contribution guidelines.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •