Code Monkey home page Code Monkey logo

smswithoutborders-dev-fe's Introduction

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

  • PORT -> development port
  • REACT_APP_API_URL -> Backend API URL
  • REACT_APP_API_VERSION -> API version
  • HTTPS -> Enable or disable https
  • SSL_CRT_FILE -> Location of SSL CRT file
  • SSL_KEY_FILE -> Location of SSL Key file

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

  • Enable rewrite module
sudo a2enmod rewrite
  • Open apache configuration file at /etc/apache2/apache2.conf
  • Change the AllowOverride permission from none to all
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
  • Copy contents of build folder to server root normally located at /var/www/html. Ensure the .htaccess file is copied over. The .htaccess file is quite important as specified here
sudo cp -r build/. /var/www/html
  • restart apache2
sudo systemctl restart apache2

smswithoutborders-dev-fe's People

Contributors

nsedrickm avatar dependabot[bot] avatar

Stargazers

 avatar  avatar mbangsemarcel avatar  avatar Yopa Nelly avatar Nkimih Albert avatar

Watchers

Wisdom Nji avatar

smswithoutborders-dev-fe's Issues

Modify Docs to prevent errors during windows project setup

Users will encounter several issues while setting up this project on windows

issue 1

Windows users will get a make not recognized as an internal or external command when trying to run the app locally after installing dependencies..
-Fix : Doc should prompt windows users ( with necessary commands) to install make via Chocolatey

issue 2

On Windows, an IDE like VS CODE uses PowerShell as the default terminal, which will give the following error when the prestart script runs:
bandicam 2022-12-19 11-51-28-108

-Fix: prompt Windows users to switch to /use Command prompt or Git bash terminal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.