Skip to content

Commit

Permalink
Merge pull request #85 from Agomik/v2.0
Browse files Browse the repository at this point in the history
V2.0
  • Loading branch information
jsoldani authored Apr 8, 2024
2 parents 7f75096 + 7e92cb9 commit c4c9f36
Show file tree
Hide file tree
Showing 242 changed files with 23,092 additions and 24,194 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ dmypy.json

# Pyre type checker
.pyre/

# Angular cache
.angular
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

41 changes: 0 additions & 41 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/microFreshener.iml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,24 @@ Enter in the server directotry
cd /server
```

Create a virtual environment and install the python dependencies
Create a virtual environment and install the python dependencies. Python3.8 is needed.

```bash
virtualenv -p python3 venv
virtualenv -p="/usr/bin/python3.8" venv
source venv/bin/activate
pip install -r requirements.txt
```

Apply migrations
If you're using Windows, type this instead.

```bash
python -m venv venv
Set-ExecutionPolicy Unrestricted -Scope Process
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
```

Apply migrations (if this doesn't work, try running it after you already run the server once)

```bash
python manage.py migrate
Expand Down Expand Up @@ -83,9 +92,12 @@ Serve the client with a local server
```bash
sudo ng serve
```

[comment]: <> (// deploy on production host "neri.di.unipi.it")
[comment]: <> (ng serve --host neri.di.unipi.it -c production)

In case of `ERR_OSSL_EVP_UNSUPPORTED` error, type `export NODE_OPTIONS=--openssl-legacy-provider` before `ng serve`.

Open the bowser on http://127.0.0.1:4200/.


Expand Down
6 changes: 4 additions & 2 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ This project was generated with [Angular CLI](https://github.com/angular/angular

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
Run `ng serve` or `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

In case of `ERR_OSSL_EVP_UNSUPPORTED` error, type `export NODE_OPTIONS=--openssl-legacy-provider` before `ng serve`.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use `ng build --configuration production` instead for a production build.

## Running unit tests

Expand Down
17 changes: 15 additions & 2 deletions client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"schematics": {},
"architect": {
"build": {
"defaultConfiguration": "development",
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/microtosca-client",
Expand Down Expand Up @@ -39,7 +40,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
Expand All @@ -52,6 +52,16 @@
"maximumError": "5mb"
}
]
},
"development": {
"optimization": false,
"outputHashing": "all",
"sourceMap": true,
"namedChunks": true,
"extractLicenses": false,
"vendorChunk": true,
"buildOptimizer": false,
"budgets": []
}
}
},
Expand Down Expand Up @@ -132,5 +142,8 @@
}
}
},
"defaultProject": "microtosca-client"
"defaultProject": "microtosca-client",
"cli": {
"analytics": false
}
}
Loading

0 comments on commit c4c9f36

Please sign in to comment.