Simple starter Node.js Application with Typescript
-
Clone this repository
git clone https://github.com/OpesanyaAdebayo/Basic-CRUD-Node-API.git
-
Install dependencies
cd Basic-CRUD-Node-API
npm install
-
Create a
.env
file with the same variables as.env.example
in this repository. Replace the contents with your own variables.Please note that
MONGODB_URI
is the connection url for MongoDB. I used MongoDB Atlas to manage my MongoDB instance but you can simply replace it with the url you use for your local MongoDB instance. -
Start your MongoDB server
mongod
-
Build the application
npm run build
-
Start the application
npm start
-
Visit
localhost:${PORT}
and the API should be ready.