The main purpose of this repository is to show a working Node.js API Server + front-end project and workflow for writing Node code in TypeScript.
To build and run this app locally you will need a few things:
- Install Node.js
- Install MongoDB
- Install pnpm (npm install -g pnpm@latest-10)
Clone the repository
git clone https://github.com/dreamsparkx/node-ts-starter <project_name>
Install dependencies
cd <project_name>
pnpm install
Configure and start MongoDB
mongod
# on macOS 10.15 or above the db directory is under home directory
mongod --dbpath ~/data/db
Build and run the project
pnpm build
pnpm start