0.0.0 • Published 7 years ago

inspire-script v0.0.0

Weekly downloads
4
License
-
Repository
-
Last release
7 years ago

InspireScript

InspireScript is a Node application with support for creating content with React components mixed into markdown.

Project Structure

InspireScript is split into the following domains:

  • client: The client side interface for the application
  • server: The web server responsible for handling API requests
  • database: The backing database schemas and configurations

The project is structured by domain feature, not by type. Ideally at any point a feature could be extracted into a separate npm module that uses an API for communicating with other modules. Essentially each feature is a microservice.

Application Components

Application components should be separated into stateful container components and stateless display components.

Configuration

Environment configuration is handled by the dotenv package using a .env file. A different .env can be created for each environment. The configurations are loaded into the process.env in the index.js file.

Convenience Libraries

Logging messages can take advantage of the colors library.

nodemon: Simple monitor script for use during development of a node.js app. See scripts:start:dev

Development

To start the applicaton in development execute the start commands:

  • start:server-dev (Start server in development mode with nodemon)
  • start:client-dev (Start webpack dev server with HMR)