You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-4Lines changed: 44 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,13 @@
2
2
Bookmarks.dev is a bookmark manager created and designed primarily for Developers & Co. It helps you [save time and nerves
3
3
when managing your dev bookmarks](https://dev.to/ama/how-i-manage-my-dev-bookmarks-and-save-time-and-nerves-56ae) and eases
4
4
[bookmarking of code snippets via Codelets](https://dev.to/ama/bookmarking-code-snippets-with-codelets-3d44). Check our
5
-
[HowTo](https://www.bookmarks.dev/howto) page to help you get started.
5
+
[HowTo](https://www.bookmarks.dev/howto) page to help you get started:
6
6
7
-
Most worthy public bookmarks are published regularly on Github in a [separate repository](https://github.com/CodepediaOrg/bookmarks).
7
+
[](https://www.bookmarks.dev/howto)
8
+
9
+
> Most worthy public bookmarks are published regularly on Github in a [separate repository](https://github.com/CodepediaOrg/bookmarks).
10
+
11
+
***
8
12
9
13
## Getting started
10
14
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
@@ -14,7 +18,7 @@ The project is developed with the MEAN stack and [Keycloak](http://www.keycloak.
14
18
15
19
The project contains two parts
16
20
*[frontend](frontend) which makes up the User Interface. This uses with Angular and Angular CLI.
17
-
*[backend](backend) which is the API supporting the UI. This uses ExpressJS with MongoDB and Keycloak.
21
+
*[backend](backend) which is the API supporting the UI. It uses ExpressJS with MongoDB and Keycloak. See the [OpenAPI specification](https://www.bookmarks.dev/api/docs)
18
22
19
23
### Prerequisites
20
24
@@ -81,11 +85,47 @@ loaded with your account and you can start playing with them.
81
85
> You can create your own test user, or any other extra users by following the screenshots in
82
86
> [Add a Keycloak user](documentation/keycloak/add-keycloak-user.md) to create it.
83
87
88
+
## Testing
89
+
### Backend
90
+
### Integration tests
91
+
92
+
> Keycloak and mongodb have to be started as specified above (`docker-compose up` command)
93
+
94
+
Run the integration test by issuing the following command.
95
+
96
+
```bash
97
+
cd backend;
98
+
npm run integration-tests
99
+
```
100
+
101
+
A report will be generated.
102
+
103
+
## Debugging
104
+
### Frontend
105
+
#### Dev Tools in Chromium browsers
106
+
You can use the Dev Tools in Chromium based browsers (e.g. Chrome, Brave). Navigate to **Sources** and the file you want to set
See [Node.js debugging in VS Code with Nodemon](https://github.com/microsoft/vscode-recipes/tree/master/nodemon)
124
+
84
125
## Contributing
85
126
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
86
127
87
128
## Versioning
88
-
89
129
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/CodepediaOrg/bookmarks.dev/tags).
> The production setup is can be found here - [components production](https://raw.githubusercontent.com/wiki/CodepediaOrg/bookmarks-api/images/network-diagram.png)
15
-
1
+
# Frontend
2
+
The User Interface (frontend) is built with [Angular](https://angular.io/) and [Angular CLI](https://cli.angular.io/)
16
3
17
4
***
18
5
@@ -27,6 +14,8 @@ These instructions will get you a copy of the project up and running on your loc
27
14
28
15
This project was generated with [Angular CLI](https://github.com/angular/angular-cli)
29
16
17
+
> Change to the `frontend` folder before running any of the commands bellow - `cd frontend`
18
+
30
19
### Development server
31
20
32
21
Run `ng serve` for a dev server. Navigate to [`http://localhost:4200/`](http://localhost:4200). The app will automatically reload if you change any of the source files.
@@ -58,12 +47,6 @@ Run `ng build` to build the project. The build artifacts will be stored in the `
58
47
59
48
I use an alias for that
60
49
```shell
61
-
alias bookmarks-build-aot='cd ~/projects/dev/personal/bookmarks/bookmarks.dev; rm -rf dist*; nvm use; npm run build:aot'
50
+
alias bookmarks-build-aot='cd ~/projects/dev/personal/bookmarks/bookmarks.dev/frontend; rm -rf dist*; nvm use; npm run build:aot'
62
51
```
63
52
64
-
## Contributing
65
-
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.
66
-
67
-
## License
68
-
69
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
0 commit comments