Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Express-Server Starter Template with HTTPS Server and React Application to use with Boxfuse.com

License

Notifications You must be signed in to change notification settings

comsysto/express-react-boxfuse-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-react-boxfuse-starter

Express-Server Starter Template with HTTPS Server and React Application to use with Boxfuse. See the BlogPost about Microservices with Boxfuse.


 

Quickstart

# CLONE
git clone https://github.com/comsysto/express-react-boxfuse-starter.git
cd express-react-boxfuse-starter

# Install Frontend + Server Dependencies
npm install

cd server
      # START APP INSTANCE
      boxfuse run -ports.https=10444 -live
## OR
      # START APP INSTANCE - with some env vars 
      boxfuse run -ports.https=10444 -live -envvars.BACKEND=dev

# BUILD JS+CSS BUNDLE AND WATCH FOR CHANGES
cd ../
npm run develop

Now go to https://localhost:10444 and accept the self signed certificate.

You should see something like this:


 

SSL Certificate

There is already one self signed certificate residing in ./server/ssl/. You should at best put a valid wildcard SSL Certificates to ./server/ssl/ see ./server/server.js on how to configure SSL.

How to generate self signed certificate:

cd express-react-boxfuse-starter/server/ssl
openssl req  -nodes -new -x509  -keyout app.key -out app.crt

# Country Name (2 letter code) [AU]:DE
# State or Province Name (full name) [Some-State]:DE
# Locality Name (eg, city) []:DE
# Organization Name (eg, company) [Internet Widgits Pty Ltd]:DE
# Organizational Unit Name (eg, section) []:DE
# Common Name (e.g. server FQDN or YOUR name) []:localhost
# Email Address []:foo@bar.de

 

License

MIT

About

Express-Server Starter Template with HTTPS Server and React Application to use with Boxfuse.com

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published