From 8f27246234c1c64bb0d363679cd7810c822a17bd Mon Sep 17 00:00:00 2001 From: Lynixenn Date: Sun, 30 Mar 2025 22:59:19 +0200 Subject: [PATCH] Fixed Database creation, The error was that there were 2 simultaenous Database connections, causing an error when both attempted to connect at once. --- .gitignore | 1 + Dockerfile | 20 ------------------ README.md | 26 +++++++++++------------ allBase.session.sql | 6 ------ api/main.ts | 2 +- database/create_db.ts | 19 +++++++---------- database/utils.ts | 49 ++++++++++++++++++++++++------------------- deno.lock | 2 ++ 8 files changed, 52 insertions(+), 73 deletions(-) delete mode 100644 Dockerfile delete mode 100644 allBase.session.sql diff --git a/.gitignore b/.gitignore index 289e710..ce13133 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ dist dist-ssr .vite *.local +*.sqlite # Editor directories and files .vscode/* diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 70c9812..0000000 --- a/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -# Use a Node.js base image with npm pre-installed -FROM node:alpine - -# Set the working directory -WORKDIR /app - -# Copy package.json and package-lock.json -COPY package*.json ./ - -# Install dependencies -RUN npm install - -# Copy the rest of the application code -COPY . . - -# Expose the port your app will listen on -EXPOSE 3000 - -# Start the app -CMD ["node", "index.js"] \ No newline at end of file diff --git a/README.md b/README.md index 6865443..fbe988b 100644 --- a/README.md +++ b/README.md @@ -10,19 +10,22 @@ ESP is a simple social media platform built with [Deno](https://deno.land/), [Vi We're building ESP to avoid the clutter of other Social Media websites. -It's build to be simple, fast and easy to use, all while keeping a Minimal feeling to it. +It's built to be simple, fast and easy to use, all while keeping a Minimal feeling to it. --- # How do I run it? +The only dependency is Deno! Nothing else is required, Deno will install all the Modules needed and start it. + ## Running -Dev server: +API + Website: ```bash $ deno task dev ``` + API only: ```bash $ deno task dev:api @@ -47,24 +50,21 @@ $ deno task build ## Libs/Frameworks used -