Skip to content

Commit

Permalink
Merge pull request #19 from valon-loshaj/feature/issue13
Browse files Browse the repository at this point in the history
Feature/issue13
  • Loading branch information
valon-loshaj authored Nov 10, 2024
2 parents 946b4c4 + f969aea commit 08c67f0
Show file tree
Hide file tree
Showing 48 changed files with 10,432 additions and 1,297 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .copilot/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"prompts": {
"system": "Your custom system prompt here."
}
}
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": ["./tsconfig.json", "./apps/*/tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"rules": {},
"ignorePatterns": ["**/dist/**", "**/node_modules/**"]
}
2 changes: 1 addition & 1 deletion .github/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
After [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo) and [installing pnpm](https://pnpm.io/installation):

```shell
git clone https://github.com/<your-name-here>/side-quest
git clone https://github.com/ < your-name-here > /side-quest
cd side-quest
pnpm install
```
Expand Down
12 changes: 8 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.all-contributorsrc
.husky/
coverage/
lib/
node_modules
.next
build
dist
coverage
pnpm-lock.yaml
.husky
lib
.all-contributorsrc
18 changes: 15 additions & 3 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"overrides": [{ "files": ".nvmrc", "options": { "parser": "yaml" } }],
"semi": true,
"trailingComma": "es5",
"singleQuote": false,
"tabWidth": 2,
"useTabs": true,
"printWidth": 80,
"overrides": [
{
"files": ".nvmrc",
"options": {
"parser": "yaml"
}
}
],
"plugins": [
"prettier-plugin-curly",
"prettier-plugin-sh",
"prettier-plugin-packagejson"
],
"useTabs": true
]
}
20 changes: 19 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,23 @@
],
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
"eslint.useFlatConfig": true,
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/.apivcs": true,
"**/.gitignore": true,
"**/.designer.json": true,
"**/.exchange.xml": true,
"**/.vscode": true,
"**/.mvn": true,
"**/.tmp": true,
"**/.settings": true,
"**/.exchange_modules_tmp": true,
".mule": true
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
```shell
npm i side-quest
```

```ts
import { greet } from "side-quest";

greet("Hello, world! 💖");
```

## Contributors

<!-- spellchecker: disable -->
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
Expand Down
3 changes: 3 additions & 0 deletions apps/backend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}
3 changes: 3 additions & 0 deletions apps/backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
# Keep environment variables out of version control
.env
94 changes: 94 additions & 0 deletions apps/backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "backend",
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "ISC",
"author": "",
"main": "index.js",
"scripts": {
"build": "tsc",
"dev": "ts-node-dev --respawn --transpile-only src/server.ts",
"start": "node dist/server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"express": "^4.21.1"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^20",
"prettier-plugin-curly": "^0.3.1",
"prettier-plugin-packagejson": "^2.5.3",
"prettier-plugin-sh": "^0.14.0",
"prisma": "^5.22.0",
"ts-node-dev": "^2.0.0",
"typescript": "^5"
}
}
29 changes: 29 additions & 0 deletions apps/backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init

generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

generator client {
provider = "prisma-client-js"
}

model User {
id Int @id @default(autoincrement())
email String @unique
name String?
}
12 changes: 12 additions & 0 deletions apps/backend/src/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import express from "express";
import { type Express } from "express";

const app: Express = express();

app.use(express.json());

app.get("/", (req, res) => {
res.json({ message: "Hello from SideQuest API" });
});

export default app;
4 changes: 4 additions & 0 deletions apps/backend/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Example file to ensure ESLint has something to check
export const hello = () => {
return "Hello from backend";
};
7 changes: 7 additions & 0 deletions apps/backend/src/server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import app from "./app";

Check failure on line 1 in apps/backend/src/server.ts

View workflow job for this annotation

GitHub Actions / Lint

Can't resolve './app' in '/home/runner/work/side-quest/side-quest/apps/backend/src'

const port = process.env.PORT || 3001;

app.listen(port, () => {
console.log(`Server running on port ${port}`);
});
13 changes: 13 additions & 0 deletions apps/backend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}
8 changes: 8 additions & 0 deletions apps/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["../../.eslintrc.json", "plugin:react/recommended"],
"settings": {
"react": {
"version": "detect"
}
}
}
40 changes: 40 additions & 0 deletions apps/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
Loading

0 comments on commit 08c67f0

Please sign in to comment.