-
Clone this project by running the following command.
bash git clone https://github.com/nwatchcanada/nwapp-front.git cd nwapp-front -
Intall the dependent libraries.
bash npm install -
(OPTIONAL) If you are using Google Chrome web-browser, Please download the following Chrome extensions to assist you in your development.
-
This project is uses subdomains to seperate tenants. As a result, we will need to bind a few subdomains to your
hostsfile. To do this follow these instructions. -
Update your hosts file to support our applications domain.
bash sudo vi /etc/hosts -
Append to the file...
text 127.0.0.1 public.localhost 127.0.0.1 london.localhost 127.0.0.1 toronto.localhost 127.0.0.1 sub1.localhost 127.0.0.1 sub2.localhost -
Refresh the dns on your machine to support our new domains.
bash dscacheutil -flushcache -
(OPTIONAL) You can override the environment variables if you like. Simply copy the current file and change according to your specs.
bash cp .env .env.local -
(OPTIONAL) Edit your environment variables file to your specification.
bash vi .env.local -
You are now setup!