Peter R Andersen
Jens Gelbek
Rasmus Ditlev Hansen
Tobias Zimmermann
- Clone the project with
git clone https://github.com/tobias-z/ca3-client-startcode
. - Run these 2 commands:
rm -rf .git
git init
- Setup your own repository and follow their instructions.
- Run command
npm install
to initialise the project. - Change the URL's in the settings.js to your personal endpoints.
You are good to go!
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 💪
We have two ways to deploy our application:
If you do not have surge installed run npm install -g surge
npm run build
surge --project ./build --domain A_DOMAIN_NAME.surge.sh
The name xxx will be used as what you should put as your own name. This setup requires some knowledge of Nginx
ssh
into your dropletcd /etc/nginx/sites-enabled
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
cd /var/www
mkdir xxx
chmod -R 777 xxx
- Go back to your own project and run
npm run build
- Run
scp -r ./build/* root@YOURDROPLETURL:/var/www/xxx