Clone the git repository via:
$ git clone https://github.com/LiorRabin/words-counter-and-stats.git
Navigate to the project folder and install all needed dependencies via npm:
$ npm install
- Create an
.env
file from the.env.example
file. - Update the
.env
file parameters:NODE_ENV
PORT
= port you wish the server to listen toREDIS_URL
=redis://127.0.0.1:6379
- Start you local redis server
- Run using
npm start
(ornpm run dev
to run withnodemon
and restart on code changes)
- Create an
.env
file from the.env.example
file. - Update the
.env
file parameters:NODE_ENV
PORT
= port you wish the server to listen toREDIS_URL
=redis://words-counter-and-stats-redis
- Run using
npm run docker-start
(stop usingnpm run docker-stop
)
See API Docs
npm run lint
performs a lint for all source code using standard js.
Code released under the MIT License.