25 lines
666 B
Markdown
25 lines
666 B
Markdown
|
# Run the project COPEN-FE
|
||
|
|
||
|
- **How to clone the project**:
|
||
|
|
||
|
`git clone http://code.sdsrv.vn/c-ope2n/frontend.git`
|
||
|
|
||
|
- **Change to working directory**:
|
||
|
Open the downloaded project via terminal then re-direct to the `frontend` folder and switch to the `develop` branch:
|
||
|
|
||
|
`cd frontend`
|
||
|
|
||
|
`git checkout develop`
|
||
|
|
||
|
- **Install packages**: Install needed packages/dependencies for running the\*\* project (We need to manually run this every time we add a new dependency to the `package.json` file).
|
||
|
|
||
|
`npm i`
|
||
|
|
||
|
- Start project in developer mode:
|
||
|
|
||
|
`npm start`
|
||
|
|
||
|
- **Environment variables** in `.env` file:
|
||
|
- Development port: VITE_PORT
|
||
|
- Backend API: VITE_PROXY
|