Follow these steps to set up the project locally.
You will need the following things properly installed on your computer.
git clone <repository-url>this repositorycd open-event-frontend
Note : If you want to contribute, first fork the original repository and clone the forked repository into your local machine followed by cd into the directory
git clone https://github.com/USERNAME/open-event-frontend.git
cd open-event-frontendyarncp .env.example .envyarn l10n:generate
-
Open Event Frontend supports FastBoot which is disabled for the development environment and is controlled by the flag
FASTBOOT_DISABLEDin the.envfile. -
Only for Mac users :- If while running
yarn l10n:generateyou encounterGet-Text Finding ErrororEmber-l10n Missing Dependencies. Please use this before runningyarn l10n:generateagain :
brew reinstall gettext
brew link --force gettext -
By default, the
.env.examplefile specifies theAPI_HOSTashttps://open-event.dokku.fossasia.orgwhich is a test deployment of the open-event-server. If you intend to work on just the frontend, this is sufficient. If however, you intend to work on issues which involve both the frontend and the backend, you must have the open-event-server already up and running. Please install and set it up first before changing the URL forAPI_HOSTtohttp://localhost:5000and proceeding to run the frontend. -
By default, the
environment.jsfile specifies thewebAppGeneratorashttps://open-event-wsgen-dev.herokuapp.comwhich is a test deployment of the open-event-wsgen. If you intend to work on just the frontend, this is sufficient. If however, you intend to work on issues which involve both the frontend and the website generator, you must have the open-event-wsgen already up and running. Please install and set it up first before creating a constant URL forWEB_APP_GENERATOR_HOSTtohttp://localhost:3000in .env and proceeding to run the frontend.
yarn start- Visit your app at http://localhost:4200.