The project is written in React + TypeScript and uses a NodeJS backend. An overview of directories is as follows:
client/: Client-side/front-end coderoutes/: Routes are standalone pages of the app, each with a unique URL slugcomponents/: Reusable components that are common across routesconfig.ts: Front-end configuration tokens
server/: Back-end codeconfigs/: Collection of back-end configuration tokens (egdb.config.ts,twitter-keys.config.ts)middleware/: Project-specific NodeJS middlewareroutes/: Collection of API routesservices/: DB-level access services consumed by routes and middleware
Before you can build this project, you must install and configure its dependencies on your machine using
npm installTo start the app in development mode, run
npm run devThis project can be packaged for production using:
npm run buildTo deploy the packaged build, run the following command from the directory containing the packaged files (./dist by default)
npm install
node ./server/main.cjsEnsure the NODE_ENV environment variable is set to
production
NODE_ENV=production node ./server/main.cjs