# Javascript, check backend when starting server

**URL:** <https://discuss.circleci.com/t/javascript-check-backend-when-starting-server/38357>\
**Category:** Build Environment\
**Tags:** nodejs, javascript, node\
**Created:** [December 6, 2020, 6:10pm UTC](https://discuss.circleci.com/t/javascript-check-backend-when-starting-server/38357 "2020-12-06T18:10:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![indiehjaerta](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/indiehjaerta/32/26092_2.png) [@indiehjaerta](https://discuss.circleci.com/u/indiehjaerta)\
**Post date:** [December 6, 2020, 6:10pm UTC](https://discuss.circleci.com/t/javascript-check-backend-when-starting-server/38357/1 "2020-12-06T18:10:46Z")

</div>

This might be a dumb question and not what you really want to do.  
But in my Javascript Projects which use a backend most of them i run Nodemon when starting development. And yes if something happens I would see it there even before I commit.

Still I would just want to see that the server.js runs flawlessly in my Ci.

So my question is simply using nodemon/node how do I go about use them in CircleCi.  
If I do like I do now just having “start”: “nodemon server.js” or “start”: “node server.js” my server will run endlessly and I won’t get any result. Doesn’t matter if I have any error or it works out ok. It just runs until I force stop it.

This is my example URL:

> **[CircleCI](https://app.circleci.com/pipelines/github/indiehjaerta/Blog/98/workflows/db03a25f-ec37-48b6-a9f2-c7c19a68bbca/jobs/152)**

There is 2 possible errors there I would like to catch somehow.

---

<div class="post-metadata">

**Author:** ![owenjoliver](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/owenjoliver/32/28293_2.png) [@owenjoliver](https://discuss.circleci.com/u/owenjoliver)\
**Post date:** [May 16, 2022, 2:22pm UTC](https://discuss.circleci.com/t/javascript-check-backend-when-starting-server/38357/2 "2022-05-16T14:22:09Z")

</div>

Hello

We are following up on old tickets in the hope of helping other people running into the same issues.

Following the documentation for nodemon [here](https://www.npmjs.com/package/nodemon) we would expect the process to keep running until it is killed as it will keep watching for an updates. Due to this we would recommend running this as a [background process](https://circleci.com/docs/2.0/configuration-reference/#background-commands) while your other jobs are running as this will mean that once the other jobs have finished it will also stop the whole workflow.

Kind Regards  
Owen Oliver
