-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,63 @@ | ||
# endp-vue | ||
# e-NDP Vue | ||
|
||
[![e-NDP Vue Node.js CI](https://github.com/chartes/endp-vue/actions/workflows/node.js.yml/badge.svg)](https://github.com/chartes/endp-vue/actions/workflows/node.js.yml) | ||
|
||
[![VueJS Framework](https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D)](https://vuejs.org/) | ||
|
||
|
||
## Project setup | ||
|
||
**Note : NodeJS 21.1.0 (using nvm to manage your NodeJs version)** | ||
|
||
``` | ||
npm install | ||
npm install --legacy-peer-deps | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
|
||
``` | ||
npm run serve | ||
``` | ||
|
||
### Compiles and minifies for production | ||
### Run linter (Opt.) | ||
``` | ||
npm run build | ||
npm run lint | ||
``` | ||
|
||
### Lints and fixes files | ||
### Run tests (Opt.) | ||
``` | ||
npm run lint | ||
npm run test::unit | ||
``` | ||
|
||
## Deployment | ||
|
||
1. Go to `vue.config.js` and check the line : | ||
|
||
- in dev | ||
```js | ||
publicPath: process.env.NODE_ENV === 'production' ? "/endp" : "/" | ||
``` | ||
|
||
- in production | ||
```js | ||
publicPath: process.env.NODE_ENV === 'production' ? "/" : "/" | ||
``` | ||
|
||
2. Go to `.env.production.local` (create it if it doesn't exist - check template `.env.development` or `.env.production`) and check the lines | ||
|
||
3. Build the project using the following command : | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
4. Send the `dist/` folder to the server using `scp` | ||
|
||
------------------- | ||
|
||
e-NDP Vue is developed at the Mission projets numériques, École nationale des chartes - PSL. | ||
|
||
<img src="./src/assets/partners_logo/anr.png" width="200" align="right"> | ||
|
||
|
||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/). | ||
Ce travail a bénéficié d’une aide de l’État gérée par l’Agence Nationale de la Recherche portant la référence [ANR-20-CE27-0012](https://anr.fr/Projet-ANR-20-CE27-0012) dans le cadre du projet "Notre-Dame de Paris et son cloître: les lieux, les gens, la vie – E-NDP". |