Skip to content

Typescript rewrite #25

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

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
1744165
Convert to TS WIP
mayerlench Jan 27, 2022
dad6c87
more typescript convertsion
mayerlench Jan 27, 2022
8642d3d
Fixes all models
mayerlench Jan 28, 2022
d1ead01
removes unsued views
mayerlench Jan 28, 2022
a3d74f6
docker updates
mayerlench Jan 30, 2022
3647209
updated redis
mayerlench Jan 30, 2022
c5b3b92
fixes import of constants in apps
mayerlench Jan 31, 2022
ad50980
updates
mayerlench Jan 31, 2022
004a2ce
adds middlesware no all routes for definite secure routes
mayerlench Feb 1, 2022
d6035e5
More updates
mayerlench Feb 1, 2022
3eedcea
updates more functions to async await
mayerlench Feb 2, 2022
875e504
Adds seed data
mayerlench Feb 2, 2022
5af0476
updates models types
mayerlench Feb 4, 2022
cc8daff
reverts model changes
mayerlench Feb 4, 2022
5f59fdf
adds some types to config
mayerlench Feb 4, 2022
4fbaa2a
removes package added by mistake
mayerlench Feb 7, 2022
28f0ceb
adds ts-mocha
mayerlench Feb 7, 2022
5c5194e
removes promise delays
mayerlench Feb 8, 2022
cc05639
fixes issue where it would not responds correctly when an identical p…
mayerlench Feb 8, 2022
849263b
removes www
mayerlench Feb 8, 2022
0752186
removes module-aliases in favor of tsconfig-paths
mayerlench Feb 8, 2022
53eb38a
adds eslint and prettier
mayerlench Feb 10, 2022
b2c333e
fixes types in all the services
mayerlench Feb 10, 2022
b5c58c3
Adds typings for remaining functions
mayerlench Feb 10, 2022
d5af2e8
Adds io-ts
mayerlench Feb 11, 2022
68d64ba
Fixes tests that were mistakenly switched auth to Bearer tokens
mayerlench Feb 11, 2022
cae0614
Working better now but still need to get body typed
mayerlench Feb 13, 2022
5e1ef2f
adds iots
mayerlench Feb 15, 2022
3b74e30
Adds io-ts to all routes and fixes tests to pass
mayerlench Feb 15, 2022
16e99d4
removes unique from username (should be removed altogether)
mayerlench Feb 15, 2022
c9c50ce
chore: setup procfile and pm2
rigor789 Feb 18, 2022
39a31a2
chore: remove postinstall, not needed
rigor789 Feb 18, 2022
db6780c
chore: ignore env files
rigor789 Feb 18, 2022
454819e
fix: pacakge.json
rigor789 Feb 18, 2022
77a30e0
Changes "from" to be auth.user when sending emails
mayerlench Feb 18, 2022
c9911aa
Merge branch 'master' of github.com:finitydevs/nativescript-app-sync-…
mayerlench Feb 18, 2022
de09c3f
fixes parsing of accessToken
mayerlench Feb 21, 2022
1d76666
Adds redirects for register and login
mayerlench Feb 22, 2022
f3189dd
adds WEB_APP_URL config
mayerlench Feb 22, 2022
d5aab41
adds webAppUrl config
mayerlench Feb 22, 2022
82ea1ba
changes login redirects route
mayerlench Feb 22, 2022
015ef3b
removes deploymentName
mayerlench Feb 25, 2022
2942bf9
Makes some promote iots nullable instead of optional
mayerlench Feb 25, 2022
3ed3942
Adds seuqlize migrations
mayerlench Mar 10, 2022
00ac8aa
Fix for validatorVersion it was appending a 1 to max_version to due t…
mayerlench Mar 11, 2022
4e92ade
adds migrations
mayerlench Mar 14, 2022
c5b5f6a
adds migrations
mayerlench Mar 14, 2022
e642e92
removes config.json file
mayerlench Mar 14, 2022
52caef9
Merge pull request #1 from finitydevs/change/adds-migrations
mayerlench Mar 14, 2022
add867f
adds sequelize-cli
mayerlench Mar 14, 2022
477188b
disables helmet
mayerlench Jun 15, 2022
a884203
updates package-lock
mayerlench Jun 15, 2022
427a5f6
updates node engine
mayerlench Jun 15, 2022
f09d46c
updates node engine
mayerlench Jun 15, 2022
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
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
Dockerfile
40 changes: 0 additions & 40 deletions .editorconfig

This file was deleted.

25 changes: 25 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-base",
"airbnb-typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"linebreak-style": "off",
"semi": [
"error",
"never"
]
}
}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dist/

# env files
.env
.env.prod

# Logs
logs
*.log
Expand All @@ -17,3 +23,4 @@ node_modules
coverage

.idea
.env
10 changes: 10 additions & 0 deletions .sequelizerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// .sequelizerc

const path = require('path');

module.exports = {
'config': path.resolve('dist', 'sequelize_config.js'),
'models-path': path.resolve('dist', 'models'),
'seeders-path': path.resolve('dist', 'seeders'),
'migrations-path': path.resolve('dist', 'migrations')
};
6 changes: 6 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/nativescript-app-sync-server/v16/.suo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#Dockerfile
FROM node:14.17 as base
WORKDIR /usr
COPY /package*.json ./
RUN npm install --no-optional && npm cache clean --force
RUN npm i -g sequelize sequelize-cli
COPY ./ ./

#dev we don't COPY in this stage because for dev you'll bind-mount anyway
FROM base as dev
ENV NODE_ENV=development
RUN npm install --only=development

FROM base as prod
WORKDIR /usr
RUN npm run build
RUN rm -rf src
ENV NODE_ENV=production

CMD [ "node", "dist/server.js" ]
22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: pm2 start process.json && pm2 logs all
web: pm2 start process.json && pm2 logs all
9 changes: 0 additions & 9 deletions WEB_USAGE.md

This file was deleted.

120 changes: 0 additions & 120 deletions app.js

This file was deleted.

Loading