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 install
To start the app in development mode, run
npm run dev
This project can be packaged for production using:
npm run build
To deploy the packaged build, run the following command from the directory containing the packaged files (./dist
by default)
npm install
node ./server/main.cjs
Ensure the NODE_ENV environment variable is set to
production
NODE_ENV=production node ./server/main.cjs