diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d6c9537..5be8900 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -7,7 +7,7 @@ module.exports = { 'plugin:react-hooks/recommended', ], ignorePatterns: ['dist', '.eslintrc.cjs'], - parser: '@typescript-eslint/parser', + parser: '@typescript-eslint/parser', plugins: ['react-refresh'], rules: { 'react-refresh/only-export-components': [ diff --git a/.gitignore b/.gitignore index c9c9d17..f5099cc 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ node_modules dist dist-ssr *.local +.env # Editor directories and files .vscode/* @@ -154,4 +155,5 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* -build \ No newline at end of file +build +.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..29d7a40 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu + +RUN apt-get update +RUN apt-get install -y curl +RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - +RUN apt-get upgrade -y +RUN apt-get install -y nodejs + +COPY package.json package.json +COPY package-lock.json package-lock.json +COPY main.js main.js + +RUN npm install + +ENTRYPOINT [ "node", "main.js" ] \ No newline at end of file diff --git a/_headers b/_headers index 23eeb75..5cde00d 100755 --- a/_headers +++ b/_headers @@ -1,3 +1,5 @@ /* Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true + +*/ \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f01fda8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +version: "3.8" + +services: + postgres: + image: postgres # hub.docker.com + ports: + - "5432:5432" + environment: + POSTGRES_USER: postgres + POSTGRES_DB: review + POSTGRES_PASSWORD: password + + redis: + image: redis + ports: + - "6379:6379" diff --git a/index.html b/index.html index 8bd4ed8..2458dfe 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@
- +