Skip to content
Snippets Groups Projects
Select Git revision
  • 9f8dbd49d0673f6d41ebee18a30221c569cfbcd6
  • main default protected
  • dependabot/go_modules/github.com/gin-contrib/cors-1.6.0
  • master
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.0
  • v1.1.1
  • v1.1.0
  • v1.0.3
  • v1.0.2
  • v1.0.1
  • v1.0.0
14 results

frontend

user avatar
newb1er authored
9f8dbd49
History

free5GC Web Console Frontend

Note that this tutorial is for frontend development ONLY, not the whole web console!

Environment Setup for Frontend Development

Install yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn

Install required packages

yarn install

Note that the default api server base request url is defined in: webconsole/frontend/src/config/config.js

Run the Frontend Dev Web Server

Run the frontend development server with file watcher

yarn start

To specify backend server api url

REACT_APP_HTTP_API_URL=http://127.0.0.1:5000/api PORT=3000 yarn start