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

Feat: link services added #5

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": ["@babel/preset-env"],
"plugins": [
["module-resolver", {
"alias": {
"@": ["./src"]
}
}]
]
}
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
test
node_modules
logs

commitlint.config.cjs
README.md

.github
.eslintcache
.eslintrc
.gitignore
.prettierignore
.prettierrc
.env.example
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": [
"@sliit-foss/eslint-config-internal"
],
"env": {
"browser": false,
"node": true,
"jest": true,
"es6": true
},
"rules": {
"no-sparse-arrays": "off",
"no-nested-ternary": "off",
"newline-per-chained-call": "off",
"import/order": "off"
}
}
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/node_modules
dist/
logs/
node_modules/
.vscode/
yarn.lock
yarn-error.log
.env
.history
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
save-exact=true
enable-pre-post-scripts=true
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out/**
dist/**
logs/**
coverage/**
node_modules/**
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"printWidth": 120,
"bracketSameLine": true,
"bracketSpacing": true,
"singleQuote": true,
"quoteProps": "consistent",
"trailingComma": "none",
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrder": [
"^(express*(.*)$)",
"^(@sliit-foss*(.*)$)",
"<THIRD_PARTY_MODULES>",
"^(.*@/*(.*)$)",
"^[./]"
],
"importOrderSeparation": false,
"importOrderSortSpecifiers": true
}
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:16-alpine

WORKDIR /app

COPY . .

RUN npm i -g [email protected]

RUN pnpm install --ignore-scripts --fix-lockfile
RUN pnpm build

CMD ["node", "dist/app.js"]

EXPOSE 3000
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 SLIIT FOSS Community
Copyright (c) 2024 SLIIT FOSS Community

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# url-shortner-be
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@/*": ["*"]
}
}
}
Loading