Skip to content

CashStory/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

251 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workspaces Api

Whole stack in TypeScript.

This project uses the MEAN stack:

Other tools and technologies used:

Prerequisites

  1. Install Node.js and MongoDB
  2. From project root folder install all the dependencies: npm i
  3. create .env file with theses vars
MONGODB_URI=mongodb://URLOFYOURMONGO
MAX_WORKER=1
FRONT_URI=https://bob.dev.cashstory.com
FTP_URI=https://ftp.cashstory.com
FTP_AUTH_TOKEN=APIKEY
BACK_URI=https://darkknight.dev.cashstory.com
SECRET_TOKEN=RANDOMTOKEN
ENCRYPT_KEY= Result of => openssl rand -base64 32;
SIGN_KEY= Result of => openssl rand -base64 64;
TWILIO_NUMBER=TWIOLIOMOBILE
TWILIO_SID=TWIOLIOSID
TWILIO_TOKEN=TWIOLIOTOKEN
EMAIL_HOST=SMTPSERVER
EMAIL_PORT=465
EMAIL_SECURE=true
EMAIL_USER=EMAIL
EMAIL_PASSWORD=PASS
EMAIL_FROM=EMAIL
EMAIL_ADMIN=EMAIL1, EMAIL2
SLACK_WEBHOOK=WEBHOOKURL
SLACK_NAME=NAME
SLACK_CHANNEL=#CHANNEL
API_KEY_CLOCKIFY=APIKEY
API_KEY_WAKATIME=APIKEY
TZ=Europe/Paris
DK_ENV=dev
WORKSPACEDEFAULT=5eaa9b7c87e99ef2430a270a
DEBUG=true
NODE_ENV=production

Run

Development mode

npm start: execute TypeScript compiler and Express server.

Files are being watched. Any change automatically creates a new bundle, restart Express server.

Production mode

npm start serve.prod: run the project with a production bundle at localhost:3000

Running linters

Run yarn start lint to execute all lint

Author

About

⚙️ BOB API - Back-end

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5