Surrey Board
First time cloning on gitlab.surrey.ac.uk
- Generate your own SSH keys:
ssh-keygen -t ed25519
- Add your SSH key to Gitlab (for MacOS):
tr -d '\n' < ~/.ssh/id_ed25519.pub | pbcopy
- Go to Gitlab, On the top bar, in the top right corner, select your avatar, On the left sidebar, select SSH Keys. In the Key box, paste the contents of your public key.
Alternatively, visit this link for clearer instructions.
How to run the app
- Clone the repo
git clone git@gitlab.surrey.ac.uk:com301424/surrey-board.git
- Go to surrey-board directory:
cd surrey-board
- Go to the front-end directory with
cd ../front-end
- Run
npm install
- Run the front-end with
npm start
- Open two new terminals
- For the first terminal go into the authentication dir with
cd server/authentication
and runnpm install
thennpm start
- For the second terminal go into the posts dir with
cd server/posts
and runnpm install
thennpm start