GithubHelp home page GithubHelp logo

danielmartinezsarta / recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akiraheid/recipes

0.0 0.0 0.0 124 KB

Tentative name. Node server for storage and display of recipes.

JavaScript 82.08% HTML 17.81% CSS 0.11%

recipes's Introduction

Recipe

A Raspberry Pi recipe server.

Configuration

Config path

Set the configuration file to use by setting RECIPE_CONFIG to the path of the configuration file to use. If RECIPE_CONFIG is not specified, config.json in the repo is used.

Configuration file

  • port {integer} Port to serve requests on.
  • rootURL {string} URL of the application's root.
  • localDB Local database configuration options.
    • type {string} The name of the file (without the .js extension). For example, if the adapter is mongodb.js, the value would be mongodb.
    • options {Object} Options for this particular database adapter.

Configuration options access

To access the configuration file in code, import js/config.js and access options from the options member.

// dbAdapters/mydb.js
const config = require('../js/config')

console.log(config.options.localDB.options.myoption)

recipes's People

Contributors

akiraheid avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.