This project was bootstrapped with Create React App.
netCVwork requires Vagrant v2+ and Virtual Box to run.
Tbhe following setup is used to create the development environment.
Install Vagrant and Virtual Box and clone this repository.
$ git clone https://github.com/psa95/netCVwork.git
$ cd netCVwork
Now, from inside the folder, run the following command:
$ vagrant up
Note (Windows Users): Please run all commands pertaining to Vagrant in a Powershell window (with Administrator Privileges) to avoid any issues.
The above command will create a new virtual instance for the application, and install all required system and node dependencies. Once the setup is done, we need to startup our MongoDB service within the Vagrant Server.
$ vagrant ssh
$ sudo mongod
Now, we need to build our React frontend in a new command window.
$ vagrant ssh
$ cd /vagrant/client
$ npm run-script build
Next, navigate to the main project, and start it.
$ cd /vagrant/
$ npm run-script server
Once npm run-script server
is run and the server is started, on the host PC you can navigate to localhost:8882
to find the web application.
Install all dependencies by typing the following in a terminal window:
$ npm install
$ cd client
$ npm run-script build
$ cd..
$ npm run-script server
To create a new branch
$ git checkout -b <branchname>
Always remember to create a new branch to edit the code. Never mess with the master branch.
To display all the branches
$ git branch
To use a previous created branch
$ git checkout <branchname>
To push your work to the current branch
To add all the files to the branch
$ git add .
To add only one file to the branch
$ git add <filename>
To commit to the branch
$ git commit -m "some meaningful message"
To push to the branch
$ git push origin <branchname>
If there are updates on the master branch Follow the below steps to update your branch
$ git fetch origin
$ git merge origin/master
If there are any conflicts, resolve them in your code editor
$ git add .
$ git commit -m "message"
$ git push origin <branchname>