https://github.com/lemoncode/gex-front
https://github.com/lemoncode/gex-front
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lemoncode/gex-front
- Owner: Lemoncode
- License: mit
- Created: 2024-11-03T17:41:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T16:42:36.000Z (9 months ago)
- Last Synced: 2025-05-08T01:43:37.574Z (9 months ago)
- Language: TypeScript
- Size: 460 KB
- Stars: 10
- Watchers: 9
- Forks: 3
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Run the project
Now you can run the project.
# Gex-front





## Project
Electronic Manager of Public Procurement Files of the General State Administration.
## 🚀 Installation
Clone this repository:
```bash
git clone https://github.com/Lemoncode/gex-front.git
```
Then install dependencies with:
```bash
cd gex-front
npm install
```
When we install the project we can see that when we finish installing the dependencies the mock server dependencies are installed with the postinstall script.
_./package.json_
```json
"scripts": {
"predev": "node ./create-dev-env.js",
"postinstall": "cd mock-server && npm install",
"dev": "run-p start:vite start:mock-server",
"start:vite": "vite",
"start:mock-server": "cd mock-server && npm run start",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"prepare": "husky install"
},
```
Checking again at the _./package.json_ file we can see that we are running two commands in parallel. The first one is the Vite server and the second one is the mock server.
We have also created a script for when we start the project if the environment is not created it will create it. This is done by the script `predev`.
_./package.json_
```json
"scripts": {
"predev": "node ./create-dev-env.js",
"postinstall": "cd mock-server && npm install",
"dev": "run-p start:vite start:mock-server",
"start:vite": "vite",
"start:mock-server": "cd mock-server && npm run start",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"prepare": "husky install"
},
```
Now we can run the project with:
```bash
npm run dev
```
Open your browser and go to http://localhost:5173 (if this port is busy it will be changed to the next available port)