Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Code #1

Open
wants to merge 57 commits into
base: init_commit
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
7f5ad7f
Initial Commit
nandubatchu Mar 23, 2020
0e5b565
add pending tasks to the Queue during initialisation
nandubatchu Mar 24, 2020
fbf6a52
pick only INIT and PROCESSING operations into pending tasks
nandubatchu Mar 24, 2020
abe16cd
add account balance restrictions
nandubatchu Mar 24, 2020
8693a65
refactor
nandubatchu Mar 24, 2020
b5c0007
add config for database selection
nandubatchu Mar 24, 2020
cfdbd49
sort the pending tasks
nandubatchu Mar 24, 2020
491aabc
convert the project to typescript
nandubatchu Mar 26, 2020
cf8a549
migrate to JSONRPC
nandubatchu Mar 26, 2020
38aa26a
migrate all modules to typescript and add BaseDataConnector
nandubatchu Mar 26, 2020
7030cc2
rename accounts to books
nandubatchu Mar 27, 2020
7602c7e
make enum key and values same
nandubatchu Mar 27, 2020
b000f0b
rename databaseConfig to storageConfig
nandubatchu Mar 27, 2020
ff62bf2
comments
nandubatchu Mar 27, 2020
6dfda23
add zeroSum check and fixes
nandubatchu Mar 27, 2020
a724c2e
Dockerfile
nandubatchu Mar 27, 2020
b6668e4
update the Dockerfile to precompile
nandubatchu Mar 27, 2020
6ce0e2e
update empty entries error
nandubatchu Mar 27, 2020
ec2761f
make book entry mandatory
nandubatchu Mar 27, 2020
daf7567
add health_check endpoint and raise not found errors
nandubatchu Mar 28, 2020
3fe0c47
getOperations by bookId
nandubatchu Mar 30, 2020
00676f1
metadata filter for operations
nandubatchu Mar 30, 2020
ef405d2
getBalances using metadataFilter
nandubatchu Mar 31, 2020
de0afbb
add default_book
nandubatchu Mar 31, 2020
5dde6f7
implement server-client model for FIFO Queue management
nandubatchu Apr 1, 2020
00cd360
SequelizeDataConnector and migration script for local sqlite db
nandubatchu Apr 2, 2020
08cccbb
remove queue server and websockets
nandubatchu Apr 7, 2020
5a2ac6c
update the migration script and add pg to the dependencies
nandubatchu Apr 7, 2020
33cea33
Merge pull request #4 from nandubatchu/feature/queue-worker-stream
nandubatchu Apr 8, 2020
d7b17b6
Merge branch 'feature/queue-worker' of https://github.com/nandubatchu…
nandubatchu Apr 8, 2020
57be924
fix update
nandubatchu Apr 8, 2020
4cacdc0
Merge pull request #3 from nandubatchu/feature/sequelize
nandubatchu Apr 8, 2020
6baff96
Merge branch 'master' of https://github.com/nandubatchu/ts-ledger int…
nandubatchu Apr 8, 2020
fbd81a3
fixes
nandubatchu Apr 8, 2020
a490792
remove unused code
nandubatchu Apr 8, 2020
13b50f9
use sequelize transaction to applyOperation atomically
nandubatchu Apr 9, 2020
3e94e2e
cleanup environment variables and processes
nandubatchu Apr 9, 2020
bb59379
worker script
nandubatchu Apr 9, 2020
410f42f
add pm2
nandubatchu Apr 9, 2020
fbec8d8
update Dockerfile
nandubatchu Apr 9, 2020
89bc5ac
merge workerflow into applyFirstInOperation
nandubatchu Apr 10, 2020
c218522
enable fallback variables
nandubatchu Apr 10, 2020
99067a4
Merge pull request #2 from nandubatchu/feature/queue-worker
nandubatchu Apr 10, 2020
55c5cb0
migration to change the column data type
nandubatchu Apr 13, 2020
bc32fd5
wait for notification deliveries
nandubatchu Apr 13, 2020
6736d89
add return statement
nandubatchu Apr 13, 2020
66de8ba
return Promise
nandubatchu Apr 13, 2020
79b0787
add fallback server host
nandubatchu Apr 13, 2020
d173161
RPC errors
nandubatchu Apr 14, 2020
8e92422
Merge pull request #5 from nandubatchu/feature/error-handling
nandubatchu Apr 14, 2020
d575e67
fix metadata spelling
nandubatchu Apr 17, 2020
90fded4
fix error message
nandubatchu Apr 18, 2020
c5a2e53
add logger for all env
nandubatchu Apr 24, 2020
9025c80
remove sleep
nandubatchu Apr 24, 2020
e79110f
add request and response logs
nandubatchu Apr 24, 2020
77e7165
fix negative values
nandubatchu Apr 29, 2020
ee9eac6
fix the metdata filter matching
nandubatchu May 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NODE_ENV=local
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.env
dist
5 changes: 5 additions & 0 deletions .vscode/.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"mochaExplorer.mochaPath": "node_modules/mocha",
"mochaExplorer.files": "src/tests.ts",
"mochaExplorer.require": ["ts-node/register"]
}
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Nodemon",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector",
},
]
}
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:lts-alpine
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json ./
RUN npm install
# RUN npm ci --only=production
# Bundle app source
COPY . .
RUN npm run-script build
EXPOSE 3000
CMD [ "npm", "run-script", "server" ]
Loading