smswithoutborders / SMSWithoutBorders-Dev-FE

SMSWithoutBorders Developer Console
GNU General Public License v3.0
6 stars 2 forks source link

SMSWithoutBorders Developer Console

Please follow the steps below to get setup

Install dependencies

yarn install

Configure environment variables

Create dev and production .env configs from the example.env template

cp example.env .env.development.local

cp example.env .env.production.local

The .env file(s) contains all modifiable variables for each environment. Below are the defaults

This project was bootstrapped with Create React App, which specifies variable naming conventions

Start development server

yarn start

Open http://localhost:18900 to view dashboard in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

Create a production build

yarn build

Builds the app for production. Check the build folder for deployable files once complete.

Deployment

For a Linux/Ubuntu server running apache2 web server, follow these steps to deploy the site

sudo a2enmod rewrite
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
sudo cp -r build/. /var/www/html
sudo systemctl restart apache2