Skip to content
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist
dist-ssr
*.local
bun.lock
*.db

# Editor directories and files
.vscode/*
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# T26-Project-2
# T26-Project-2 PokeDox

http://it2810-26.idi.ntnu.no/project2/

Repository for team IT2810-H26-T26 in IT2810-H26.

## About our project

We are making a Pokemon searching site, like a pokedex if you are familiar with pokemon.
Our data is going to come from https://pokeapi.co/ (pretty known and easy api service), we will of course have our own database structure for this data, and might also modify it a bit to fit our scope.

At this stage we do not have all the Pokemons loaded, and only some mocked data loaded on every startup.
In the end we are planning on making the data permanent, and building a better loading procedure.

For our database we use SQLite with Apollo for the GraphQL Handling, this is a very efficient database structure good for a lot of data. SQLite is in some scenarios not recommended, as it does not have it's own database manager software, using only the program it runs in, but in this context, that is not a problem.

## Setup/install

We use node/npm, Bun should also work but is not guaranteed.
Expand All @@ -25,7 +35,9 @@ and to run the project use these commands (must also be ran from the project2 fo

| Command | Description |
|------------------------|----------------------------------------|
| `npm run dev` | Run the project |
| `npm run dev` | Run the project (Frontend) |
| `npm run dev:server` | Run the project (Server) |
| `npm run dev:all` | Run the project (Everything) |
| `npm run build` | Build reactcode into html/js (For VM) |
| `npm run preview` | Preview the built project from `build` |
| `npm run lint` | Run Eslint on the project |
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

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

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dependencies": {},
"devDependencies": {
"tsx": "^4.23.15"
}
}
14 changes: 14 additions & 0 deletions project2/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,19 @@ export default defineConfig([
languageOptions: {
globals: globals.browser,
},
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['../server/*', '/server/*'],
message:
'server/ should not be served to the browser',
},
],
},
],
},
},
]);
Loading