Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil2128 committed Oct 7, 2023
0 parents commit fddc977
Show file tree
Hide file tree
Showing 20 changed files with 2,056 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Cloud Charging Assessment

This is a small TypeScript project that allows you to locally run the Cloud Charging engine. Do not worry if you are not familiar with TypeScript, the codebase is small and easy to follow. The bulk of the logic is in `backend/app.ts`.

Prerequisites:
- Docker (https://docs.docker.com/get-docker/)
- NodeJS 18 (https://nodejs.org/en/download/)
- Code Editor (e.g., VSCode - https://code.visualstudio.com/)

Getting started:
- Install the dependencies: `cd backend && npm ci`.
- Run `docker-compose up --build` in the root folder of the stack to start the cache.
- You can now adjust the code as needed.
- Run `cd backend && npm start` to start the backend.
- Check the requests.http for some examples of how to use the backend via the API. Optionally, you can use the [VSCode Rest Client plugin](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) to execute this file.
- Run `cd backend && npm test` to run tests against the API to determine the current latency.
1 change: 1 addition & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
9 changes: 9 additions & 0 deletions backend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"standard-with-typescript",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json"
}
}
Loading

0 comments on commit fddc977

Please sign in to comment.