inspire-script
v0.0.0
Published
InspireScript Application
Downloads
13
Readme
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 applicationserver
: The web server responsible for handling API requestsdatabase
: 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 withnodemon
)start:client-dev
(Start webpack dev server with HMR)