Skip to content

Commit 1ea5437

Browse files
chore: merge pr #16
Start point
2 parents 408dde5 + 212e6c0 commit 1ea5437

19 files changed

+1925
-101
lines changed

.eslintrc

+1-65
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,3 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es6": true,
5-
"node": true,
6-
"jest": true
7-
},
8-
"extends": [
9-
"airbnb",
10-
"airbnb/hooks",
11-
"plugin:@typescript-eslint/recommended",
12-
"plugin:prettier/recommended"
13-
],
14-
"parser": "@typescript-eslint/parser",
15-
"parserOptions": {
16-
"ecmaFeatures": {
17-
"jsx": true
18-
},
19-
"ecmaVersion": 12,
20-
"sourceType": "module"
21-
},
22-
"plugins": [
23-
"react",
24-
"@typescript-eslint",
25-
"prettier",
26-
"react-hooks",
27-
"import-helpers",
28-
"eslint-plugin-import-helpers"
29-
],
30-
"rules": {
31-
"@typescript-eslint/explicit-function-return-type": "off",
32-
"@typescript-eslint/explicit-module-boundary-types": "off",
33-
"@typescript-eslint/interface-name-prefix": "off",
34-
"@typescript-eslint/no-explicit-any": "off",
35-
"camelcase": "off",
36-
"class-methods-use-this": "off",
37-
"import-helpers/order-imports": [
38-
"warn",
39-
{
40-
"alphabetize": {
41-
"ignoreCase": true,
42-
"order": "asc"
43-
},
44-
"groups": [
45-
"/^react/",
46-
"module",
47-
"/^[A-Z].*/",
48-
["parent", "sibling", "index"]
49-
],
50-
"newlinesBetween": "always"
51-
}
52-
],
53-
"import/no-extraneous-dependencies": [
54-
"error",
55-
{
56-
"devDependencies": true
57-
}
58-
],
59-
"import/extensions": "off",
60-
"import/no-unresolved": "off",
61-
"import/prefer-default-export": "off",
62-
"no-useless-constructor": "off",
63-
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
64-
"react/jsx-props-no-spreading": "off",
65-
"react/react-in-jsx-scope": "off"
66-
}
2+
"extends": ["cod3rocket"]
673
}

.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1+
# IDEs and editors
2+
/.idea
3+
.project
4+
.classpath
5+
.c9/
6+
*.launch
7+
.settings/
8+
*.sublime-workspace
9+
10+
# IDE - VSCode
11+
.vscode/*
12+
!.vscode/settings.json
13+
!.vscode/tasks.json
14+
!.vscode/launch.json
15+
!.vscode/extensions.json
16+
17+
# Package managers
118
node_modules
19+
*.iml
20+
pubspec.lock
221

322
# Dev
423
.env

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["blaugold.melos-code"]
3+
}

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"dart.runPubGetOnPubspecChanges": false
3+
}

README.md

+49-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,56 @@
11
# iTourism
22

3-
In progress...
3+
<p align="center">
4+
<img src="./assets/branding/cod3rocket_logo.png" />
5+
</p>
6+
7+
<h1 align="center">iTourism</h1>
8+
9+
<p align="center">
10+
The guide will contain information about the main tourist attractions, hotels, restaurants, shops and other commercial establishments in the city.
11+
</p>
12+
13+
<h3 style="display: flex; gap: 4px; justify-content: center">
14+
<!-- Version -->
15+
<a href="#">
16+
<img alt="Realeases url" src="https://img.shields.io/github/v/release/cod3rocket/iTourism?style=for-the-badge&labelColor=1C1E26&color=1764a3">
17+
</a>
18+
19+
<!-- License -->
20+
<a href="./LICENSE" target="_blank">
21+
<img alt="License: MIT" src="https://img.shields.io/badge/license%20-MIT-1C1E26?style=for-the-badge&labelColor=1C1E26&color=1764a3">
22+
</a>
23+
24+
<!-- Stars count -->
25+
<a href="https://github.com/cod3rocket/iTourism/stargazers" target="_blank">
26+
<img alt="" src="https://img.shields.io/github/stars/cod3rocket/iTourism?style=for-the-badge&labelColor=1C1E26&color=1764a3">
27+
</a>
28+
</h3>
29+
30+
# Features
31+
32+
- 🚀 Cross-platform (Android, iOS)
33+
- 🌎 Languages and custom languages
34+
35+
# Contributing
36+
37+
## Flutter
38+
39+
Melos and flutter_plugin_tools are required.
40+
41+
Install melos:
42+
43+
```bash
44+
$ dart pub global activate melos
45+
```
46+
47+
Install flutter_plugin_tools:
48+
49+
```bash
50+
$ flutter pub global activate flutter_plugin_tools
51+
```
452

553
## Authors
654

755
|[<img src="https://github.com/henriq4.png?size=150" width=150><br><sub>@henriq4</sub>](https://github.com/henriq4) | [<img src="https://github.com/eduardoteles17.png?size=150" width=150><br><sub>@eduardoteles17</sub>](https://github.com/eduardoteles17) |
856
|-|-|
9-
10-
# License
11-
12-
[MIT](LICENSE)

apps/api/.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# compiled output
2+
/dist
3+
/node_modules
4+
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
pnpm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
14+
# OS
15+
.DS_Store
16+
17+
# Tests
18+
/coverage
19+
/.nyc_output
20+
21+
# IDEs and editors
22+
/.idea
23+
.project
24+
.classpath
25+
.c9/
26+
*.launch
27+
.settings/
28+
*.sublime-workspace
29+
30+
# IDE - VSCode
31+
.vscode/*
32+
!.vscode/settings.json
33+
!.vscode/tasks.json
34+
!.vscode/launch.json
35+
!.vscode/extensions.json

apps/api/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# iTourism - api

apps/api/nest-cli.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://json.schemastore.org/nest-cli",
3+
"collection": "@nestjs/schematics",
4+
"sourceRoot": "src"
5+
}

apps/api/package.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "@itourism/api",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"prebuild": "rimraf dist",
7+
"build": "nest build",
8+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
9+
"start": "nest start",
10+
"start:dev": "nest start --watch",
11+
"start:debug": "nest start --debug --watch",
12+
"start:prod": "node dist/main",
13+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
14+
},
15+
"dependencies": {
16+
"@nestjs/common": "^9.0.0",
17+
"@nestjs/core": "^9.0.0",
18+
"@nestjs/platform-express": "^9.0.0",
19+
"reflect-metadata": "^0.1.13",
20+
"rimraf": "^3.0.2",
21+
"rxjs": "^7.2.0"
22+
},
23+
"devDependencies": {
24+
"@nestjs/cli": "^9.0.0",
25+
"@nestjs/schematics": "^9.0.0",
26+
"@nestjs/testing": "^9.0.0",
27+
"@types/express": "^4.17.13",
28+
"@types/node": "^16.0.0",
29+
"source-map-support": "^0.5.20",
30+
"ts-loader": "^9.2.3",
31+
"ts-node": "^10.0.0",
32+
"tsconfig-paths": "4.0.0",
33+
"typescript": "^4.3.5"
34+
}
35+
}

apps/api/src/main.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { NestFactory } from "@nestjs/core";
2+
3+
import { AppModule } from "./modules/app/app.module";
4+
5+
async function bootstrap() {
6+
const app = await NestFactory.create(AppModule);
7+
await app.listen(3000);
8+
}
9+
bootstrap();
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Controller, Get } from "@nestjs/common";
2+
3+
import { AppService } from "./app.service";
4+
5+
@Controller()
6+
export class AppController {
7+
constructor(private readonly appService: AppService) {}
8+
9+
@Get()
10+
getHello(): string {
11+
return this.appService.getHello();
12+
}
13+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Module } from "@nestjs/common";
2+
3+
import { AppController } from "./app.controller";
4+
import { AppService } from "./app.service";
5+
6+
@Module({
7+
imports: [],
8+
controllers: [AppController],
9+
providers: [AppService],
10+
})
11+
export class AppModule {}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Injectable } from "@nestjs/common";
2+
3+
@Injectable()
4+
export class AppService {
5+
getHello(): string {
6+
return "Hi, from NestJS!";
7+
}
8+
}

apps/api/tsconfig.build.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4+
}

apps/api/tsconfig.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"declaration": true,
5+
"removeComments": true,
6+
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
8+
"allowSyntheticDefaultImports": true,
9+
"target": "es2017",
10+
"sourceMap": true,
11+
"outDir": "./dist",
12+
"baseUrl": "./src",
13+
"incremental": true,
14+
"skipLibCheck": true,
15+
"strictNullChecks": false,
16+
"noImplicitAny": false,
17+
"strictBindCallApply": false,
18+
"forceConsistentCasingInFileNames": false,
19+
"noFallthroughCasesInSwitch": false,
20+
"resolveJsonModule": true,
21+
"esModuleInterop": true
22+
}
23+
}

assets/branding/cod3rocket_logo.png

45.2 KB
Loading

melos.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: itourism
2+
3+
packages:
4+
- apps/**
5+
- packages/**
6+
7+
command:
8+
bootstrap:
9+
usePubspecOverrides: true
10+
# It seems so that running "pub get" in parallel has some issues (like
11+
# https://github.com/dart-lang/pub/issues/3404). Disabling this feature
12+
# makes the CI much more stable.
13+
runPubGetInParallel: false
14+
15+
scripts:
16+
lint:all:
17+
run: melos run analyze && melos run format
18+
description: Run all static analysis checks.
19+
20+
analyze:
21+
# We are setting the concurrency to 1 because a higher concurrency can crash
22+
# the analysis server on low performance machines (like GitHub Actions).
23+
run: |
24+
melos exec -c 1 -- \
25+
dart analyze . --fatal-infos
26+
description: |
27+
Run `dart analyze` in all packages.
28+
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
29+
30+
format:
31+
run: |
32+
dart pub global run flutter_plugin_tools format
33+
description: |
34+
- Requires `flutter_plugin_tools` (`dart pub global activate flutter_plugin_tools`).
35+
36+
clean:deep:
37+
run: git clean -x -d -f -q
38+
description: Clean things very deeply, can be used to establish "pristine checkout" status.
39+
40+
# Additional cleanup lifecycle script, executed when `melos clean` is run.
41+
postclean: >
42+
melos exec -c 6 -- "flutter clean"

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@typescript-eslint/parser": "^5.32.0",
2121
"eslint": "^8.21.0",
2222
"eslint-config-airbnb": "^19.0.4",
23+
"eslint-config-cod3rocket": "^1.0.3",
2324
"eslint-config-prettier": "^8.5.0",
2425
"eslint-plugin-import": "^2.26.0",
2526
"eslint-plugin-import-helpers": "^1.2.1",

0 commit comments

Comments
 (0)