My (@mnrendra) initial NodeJs
project template using TypeScript
.
git clone git@github.com:mnrendra/create-nodets-app.git
We need yarn
to run it. So if you don't have it, please install it first by running npm i -g yarn
.
yarn install
Add .env
file on this root directory by running nano ./.env
and add the variables, at least:
GRPC_PORT=50051
PORT=8080
DB_URL=mongodb://127.0.0.1/example
Let's start coding from ./src/index.ts
If you are using VisualStudio Code, run it:
code .
Make sure you have MongoDB server (mongod
) run on your local machine.
mongod
yarn start