-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): update README, removing obsolete instructions (#1552)
Signed-off-by: Sylvain Leclerc <[email protected]> Co-authored-by: Laurent LAPORTE <[email protected]>
- Loading branch information
1 parent
0524e91
commit 5a8a234
Showing
5 changed files
with
82 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,58 @@ | ||
# Introduction | ||
|
||
Antares-Web is developed mainly in **python** and uses [FastAPI](https://fastapi.tiangolo.com/) web framework. | ||
The front end is a [React](https://reactjs.org/) web application. A local build allows using Antares-Web as a desktop application. | ||
Antares Web is developed mainly in **Python** and uses [FastAPI](https://fastapi.tiangolo.com/) web framework. | ||
The front end is a [React](https://reactjs.org/) web application. | ||
A local build allows using Antares Web as a desktop application. | ||
|
||
## Quick start | ||
|
||
Requirements : | ||
Requirements: | ||
|
||
- python : 3.8.x | ||
- node : 18.16.1 | ||
|
||
Then perform the following steps: | ||
|
||
1. First clone the projet: | ||
|
||
``` | ||
git clone https://github.com/AntaresSimulatorTeam/AntaREST.git | ||
cd AntaREST | ||
``` | ||
```shell | ||
git clone https://github.com/AntaresSimulatorTeam/AntaREST.git | ||
cd AntaREST | ||
``` | ||
|
||
2. Create and activate a Python virtual environment: | ||
|
||
2. Install back dependencies | ||
```shell | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
``` | ||
|
||
``` | ||
python -m pip install --upgrade pip | ||
pip install pydantic --no-binary pydantic | ||
pip install -r requirements.txt # use requirements-dev.txt if building a single binary with pyinstaller | ||
``` | ||
3. Install dependencies to build, test or develop the back end: | ||
|
||
3. Build front (for local mode use `cd ..; ./scripts/build-front.sh` instead of `npm run build`) | ||
```shell | ||
python3 -m pip install --upgrade pip | ||
pip install -e . # to install in development mode (editable) | ||
pip install -r requirements-dev.txt # production, unit tests and development requirements | ||
``` | ||
|
||
``` | ||
cd webapp | ||
npm install | ||
npm run build | ||
``` | ||
4. Install dependencies to build the front end: | ||
|
||
4. Run the application | ||
```shell | ||
cd webapp | ||
npm install | ||
npm run build | ||
cd .. | ||
``` | ||
|
||
``` | ||
export PYTHONPATH=$(pwd) | ||
python antarest/main.py -c resources/application.yaml --auto-upgrade-db | ||
``` | ||
5. Run the application | ||
|
||
```shell | ||
python3 antarest/main.py -c resources/application.yaml --auto-upgrade-db --no-front | ||
``` | ||
|
||
## Deploy | ||
|
||
There are 2 ways to use and/or deploy the application : | ||
There are 2 ways to use and/or deploy the application: | ||
|
||
- As [a server application](./2-DEPLOY.md#production-server-deployment) | ||
- As [a desktop systray application](./2-DEPLOY.md#local-application-build) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Application Configuration | ||
|
||
Almost all the configuration of the application can be found in the [application.yaml](https://github.com/AntaresSimulatorTeam/AntaREST/blob/master/resources/application.yaml) file.\ | ||
If the path to this configuration file is not explicitly given (option `-c`), the application will try to look for files in the following location (in order): | ||
- `./config.yaml` | ||
- `../config.yaml` | ||
- `$HOME/.antares/config.yaml` | ||
Almost all the configuration of the application can be found in the | ||
[application.yaml](https://github.com/AntaresSimulatorTeam/AntaREST/blob/master/resources/application.yaml) file. | ||
If the path to this configuration file is not explicitly provided (through the `-c` option), | ||
the application will try to look for files in the following location (in order): | ||
|
||
1. `./config.yaml` | ||
2. `../config.yaml` | ||
3. `$HOME/.antares/config.yaml` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters