tobias-z / ca3-client-startcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InSession client startcode

Team

Peter R Andersen

Jens Gelbek

Rasmus Ditlev Hansen

Tobias Zimmermann

Getting started

  1. Clone the project with git clone https://github.com/tobias-z/ca3-client-startcode.
  2. Run these 2 commands:
  • rm -rf .git
  • git init
  1. Setup your own repository and follow their instructions.
  2. Run command npm install to initialise the project.
  3. Change the URL's in the settings.js to your personal endpoints.

You are good to go!

Usage:

The authentication part of things is setup to compleatly split the Authenticated App and the Unauthenticated App This means that you have full control over which routes you'd like to show the users 💪

Deployment

We have two ways to deploy our application:

Deploy with Surge

If you do not have surge installed run npm install -g surge

  1. npm run build
  2. surge --project ./build --domain A_DOMAIN_NAME.surge.sh

Deploy on Nginx

The name xxx will be used as what you should put as your own name. This setup requires some knowledge of Nginx

  1. ssh into your droplet
  2. cd /etc/nginx/sites-enabled
  3. nano default
  • In this file, change the root file to point to the file you are going to create afterwards root /var/www/xxx/;
  • Save the file and exit it.
  • Run the command service nginx restart
  1. cd /var/www
  2. mkdir xxx
  3. chmod -R 777 xxx
  4. Go back to your own project and run npm run build
  5. Run scp -r ./build/* root@YOURDROPLETURL:/var/www/xxx

About


Languages

Language:JavaScript 88.3%Language:HTML 11.7%