diff --git a/README.md b/README.md index b213a85..5807a77 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,9 @@ The application is developed following a test-driven approach. Jest is used as t ESLint and Prettier are used as linters to maintain code quality and consistency. +--- + +Implement the following changes: +- Start a new web application project +- Use Nuxt.js, Firebase Functions, Firebase Auth, TypeScript, and tests. +- Create the necessary files and their content for the project. diff --git a/nuxt.config.js b/nuxt.config.js new file mode 100644 index 0000000..09f1716 --- /dev/null +++ b/nuxt.config.js @@ -0,0 +1,11 @@ +export default { + // Nuxt.js configuration + modules: [ + '@nuxtjs/firebase' + ], + firebase: { + // Firebase configuration + + }, + // Other Nuxt.js configuration options +} diff --git a/package.json b/package.json index 5584c8e..d595e18 100644 --- a/package.json +++ b/package.json @@ -1,40 +1,21 @@ { - "name": "reas-api", + "name": "new-web-app", "version": "1.0.0", - "description": "Node.js server application for the REAS API", - "main": "main.ts", + "description": "New web application project created with Nuxt.js, Firebase Functions, Firebase Auth, TypeScript, and tests", "scripts": { - "start": "node dist/main.js", - "build": "rimraf dist && tsc -p tsconfig.build.json", - "dev": "ts-node-dev --transpile-only --ignore-watch node_modules src/main.ts", + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start", + "generate": "nuxt generate", "test": "jest" }, - "jest": { - "moduleFileExtensions": [ - "js", - "json", - "ts" - ], - "rootDir": "./", - "testEnvironment": "node" - }, "dependencies": { - "@nestjs/common": "^7.0.0", - "@nestjs/core": "^7.0.0", - "@nestjs/platform-express": "^7.0.0", - "@nestjs/swagger": "^4.7.0", - "reflect-metadata": "^0.1.13", - "swagger-ui-express": "^4.1.4" - }, - "devDependencies": { - "@nestjs/cli": "^7.0.0", - "@types/express": "^4.17.8", - "@types/jest": "^26.0.13", - "@types/node": "^14.0.27", + "@nuxt/types": "^2.15.0", + "@nuxtjs/firebase": "^7.9.0", + "@types/jest": "^26.0.20", + "firebase": "^8.2.0", "jest": "^26.6.3", - "ts-jest": "^26.4.1", - "ts-node": "^9.0.0", - "tsconfig-paths": "^3.9.0", - "typescript": "^4.0.3" + "nuxt": "^2.15.0", + "typescript": "^4.1.3" } } diff --git a/tsconfig.json b/tsconfig.json index f51ad1b..6d6cf03 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,29 @@ { "compilerOptions": { - "baseUrl": "./src", - "outDir": "./dist", + "target": "es2018", + "module": "esnext", + "moduleResolution": "node", + "lib": [ + "esnext", + "dom", + "dom.iterable", + "scripthost" + ], + "jsx": "preserve", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "allowSyntheticDefaultImports": true, + "noUnusedLocals": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmitOnError": true, + "noImplicitAny": false, "paths": { - "*": [ - "./node_modules/*", - "./src/*" + "~/*": [ + "./*" ] } }