Skip to content
/ STEAN Public

SensorThings Enhanced Api Node

License

Notifications You must be signed in to change notification settings

geosas/STEAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

SensorThings Enhanced API Node

Inrae

Want to use this project?

  1. Fork/Clone
  2. Install dependencies - npm install
  3. Fire up Postgres on the default ports
  4. Make configuration/config.json file (see config.json.example)
  5. npm run dev for dev, npm run build (vs script package.json)
  6. If database not exists the program create it.

The project run under nodeJS.

Nodejs

Is 100% typescript, the javascript is used for TDD only and apidoc.

TypeScript Javascript

For views a little :

HTML JS CSS

Directory Structure

📦src
  📂server // API Server
   📂configuration // Configuration Server
    📜.key // crypt Key
    config.json // config file
   📂db
    📂createDBDatas // datas to create blank Database
    📂dataAccess
    📂entities // SensorThings entities
    📂helpers
    📂interfaces
    📜constants.ts // Constants for DB
   📂helpers // Application helpers
   📂logger // Logs tools
   📂lora // Specific lora entity
   📂odata // Odata decoder
    📂parser // Odata parser
    📂visitor //  Odata decoder process
     ┗📂helpers
   📂public // public HTTP pages
   📂routes // routes API
    📜favicon.ico // Icon
    📜protected.ts // protected routes
    📜unProtected.ts // open routes
   📂types // data types
   📂views // generated views
    📂admin // admin pages
    📂css // CsS filse
    📂graph // graph views
    📂helpers
    📂js // JS filse
    📂maker // Query maker
    📂query // Query view
   📜constants.ts // App constants
   📜db.ts // DB connection(s)
   📜index.ts // starting file
  📂template // ApiDoc template
  📂test
   📂integration // Tests
    📂files // files For importation tests
   📜apidoc.json // Apidoc configuration
   📜dbTest.ts // DB test connection
  📜build.js // js file for building app

Tech Stack