- Copy URL from Github
- Open git terminal in your directory of choice
- run git clone https://github.com/PaulSender/wwub.git
- Open a termnial/command prompt and navigate to the cloned repository (i.e: C:/users/senderp/desktop/wwub)
- run the following command:
cd client && npm install
- After all dependencies have been installed, run the following command:
cd ../server && npm install
- After all dependencies have been isntalled run
npm start
in wwub/server then open a new terminal and navigate to wwub/client and runnpm start
- Both servers are now running. The front-end should open in your default browser
- Follow this article
- When you can run the "mongo" command in cmd set up a database called "wwub"
- Enter mongo termnial:
mongo
- Create new database:use wwub
- Check currently selected database:db
- Create a collection to hold users
-
db.createCollection("users")
- Crete a collection to hold items
-
db.createCollection("items")
- Backend code should attempt to connect to the "wwub database on localhost" so we should need to change anything in the code.
- Handle tasks/todo items in Github : https://github.com/PaulSender/wwub/projects/1
- to protect a route, need to add auth function to the route in the back end. See routes/api/items edit route.
- Deployment:
- Run npm run build for front-end changes
- commit and push all
- VM bash script takes care of the rest (sh deploy.sh)