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
Clone the repository
git clone https://github.com/dreamsparkx/node-ts-starter <project_name>
Install dependencies
cd <project_name>
npm 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
npm run build
npm start