Skip to content

[WIP] Set-up Improvements #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
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
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,30 @@

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.

## Development server
## Installation

To set up this project, you'll need [Bun](https://bun.sh/) as your package manager.

### 1. Install Bun

On macOS or Linux, install Bun using Homebrew:

```
brew tap oven-sh/bun
brew install bun
```

### 2. Install dependencies

Run the following command in the project root to install all dependencies:

```
bun install
```

---

## Development Server

To start a local development server, run:

Expand Down
6 changes: 3 additions & 3 deletions src/app/core/interceptors/auth.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { Observable } from 'rxjs';

import { HttpEvent, HttpHandlerFn, HttpInterceptorFn, HttpRequest } from '@angular/common/http';

import { environment } from 'src/environments/environment';

export const authInterceptor: HttpInterceptorFn = (
req: HttpRequest<unknown>,
next: HttpHandlerFn
): Observable<HttpEvent<unknown>> => {
const authToken = 'UlO9O9GNKgVzJD7pUeY53jiQTKJ4U2znXVWNvh0KZQruoENuILx0IIYf9LoDz7Duq72EIm';
// OBJoUomBgbUuDgQo5JoaSKNya6XaYcd0ojAX1XOLmWi6J2arQPzByxyEi81fHE60drQUWv
// UlO9O9GNKgVzJD7pUeY53jiQTKJ4U2znXVWNvh0KZQruoENuILx0IIYf9LoDz7Duq72EIm kyrylo
const authToken = environment.authToken;

if (authToken) {
const authReq = req.clone({
Expand Down
7 changes: 4 additions & 3 deletions src/environments/environment.development.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export const environment = {
production: false,
apiUrl: 'https://api.staging4.osf.io/v2',
apiDomainUrl: 'https://api.staging4.osf.io',
apiUrl: 'http://localhost:8000/v2',
apiDomainUrl: 'http://localhost:5000',
shareDomainUrl: 'https://staging-share.osf.io/trove',
addonsApiUrl: 'https://addons.staging4.osf.io/v1',
addonsApiUrl: 'http://localhost:8004',
authToken: null,
};
1 change: 1 addition & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export const environment = {
apiDomainUrl: 'https://api.staging4.osf.io',
shareDomainUrl: 'https://staging-share.osf.io/trove',
addonsApiUrl: 'https://addons.staging4.osf.io/v1',
authToken: null,
};