Skip to content

Commit 3156d5d

Browse files
authored
Move frontend to the root folder (#97)
* feat: move frontend to the root directory * feat: update README
1 parent aab0c43 commit 3156d5d

File tree

272 files changed

+146
-28384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+146
-28384
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

.gitignore

+50-104
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,50 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11-
12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
17-
18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
*.lcov
24-
25-
# nyc test coverage
26-
.nyc_output
27-
28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29-
.grunt
30-
31-
# Bower dependency directory (https://bower.io/)
32-
bower_components
33-
34-
# node-waf configuration
35-
.lock-wscript
36-
37-
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
39-
40-
# Dependency directories
41-
node_modules/
42-
jspm_packages/
43-
44-
# TypeScript v1 declaration files
45-
typings/
46-
47-
# TypeScript cache
48-
*.tsbuildinfo
49-
50-
# Optional npm cache directory
51-
.npm
52-
53-
# Optional eslint cache
54-
.eslintcache
55-
56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
62-
# Optional REPL history
63-
.node_repl_history
64-
65-
# Output of 'npm pack'
66-
*.tgz
67-
68-
# Yarn Integrity file
69-
.yarn-integrity
70-
71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
77-
78-
# Next.js build output
79-
.next
80-
81-
# Nuxt.js build / generate output
82-
.nuxt
83-
dist
84-
85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
90-
91-
# vuepress build output
92-
.vuepress/dist
93-
94-
# Serverless directories
95-
.serverless/
96-
97-
# FuseBox cache
98-
.fusebox/
99-
100-
# DynamoDB Local files
101-
.dynamodb/
102-
103-
# TernJS port file
104-
.tern-port
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# IDE - VSCode
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
.history/*
33+
34+
# misc
35+
/.angular/cache
36+
/.sass-cache
37+
/connect.lock
38+
/coverage
39+
/libpeerconnection.log
40+
npm-debug.log
41+
yarn-error.log
42+
testem.log
43+
/typings
44+
45+
# System Files
46+
.DS_Store
47+
Thumbs.db
48+
49+
storybook-static
50+
documentation
File renamed without changes.

frontend/.prettierrc .prettierrc

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

LICENSE

-21
This file was deleted.

Procfile

-1
This file was deleted.

README.md

+1-36
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,6 @@ I really enjoyed working on this project. The interactive kanban board took me s
222222

223223
There are missing features from the live demo which should exist in a real product. All of them will be finished on Phase 2:
224224

225-
### Proper backend API
226-
227-
I built a very simple NestJS API to send a fixed data structure to the client. All of your interactivity with data will only be saved on the memory. If you refresh the page, it will be gone. Phase 2 will bring the application to live by saving the data into a database.
228-
229225
### Proper authentication system 🔐
230226

231227
I am currently sending the same email and a random password to the server without any check to get the current user back. Phase 2 will also bring a proper authentication system.
@@ -238,40 +234,9 @@ Not all components have properly defined [aria attributes](https://developer.moz
238234

239235
- `git clone https://github.com/trungk18/jira-clone-angular.git`
240236
- `cd jira-clone-angular`
241-
- `npm run start:front` for angular web application
237+
- `npm start` for angular web application
242238
- The app should run on `http://localhost:4200/`
243239

244-
> Update August 02, 2020: I changed the the API to use two simple JSON files for project and user. The API on heroku will go to sleep after sometimes idle. Therefore, if you open the webpage after a while without anyone using before, it will be very slow for the first load.
245-
246-
If you still want to use the API, you should follow those steps:
247-
248-
- `npm run start:back` for the API
249-
- The API server should run on `http://localhost:3000`
250-
- Open `environment.ts` and `environment.prod.ts` and uncomment the actual URL.
251-
- Open `auth.service.ts`, change
252-
253-
```ts
254-
this._http.get<JUser>(`${this.baseUrl}/auth.json`);
255-
```
256-
257-
to
258-
259-
```ts
260-
this._http.post<JUser>(`${this.baseUrl}/auth`, { email, password });
261-
```
262-
263-
- Open `project.service.ts` and change
264-
265-
```ts
266-
this._http.get<JProject>(`${this.baseUrl}/project.json`);
267-
```
268-
269-
to
270-
271-
```ts
272-
this._http.get<JProject>(`${this.baseUrl}/project`);
273-
```
274-
275240
### Unit/Integration tests 🧪
276241

277242
I skipped writing test for this project. I might do it for the proper backend GraphQL API.

frontend/angular.json angular.json

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
},
167167
"defaultProject": "frontend",
168168
"cli": {
169+
"analytics": false,
169170
"defaultCollection": "@datorama/akita"
170171
}
171172
}

backend/.eslintrc.js

-24
This file was deleted.

backend/.gitignore

-34
This file was deleted.

backend/.prettierrc

-4
This file was deleted.

backend/README.md

-69
This file was deleted.

backend/nest-cli.json

-4
This file was deleted.

0 commit comments

Comments
 (0)