Skip to content

A Forum made using the MERN stack and written in javascript

License

Notifications You must be signed in to change notification settings

DrejT/forum-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributing

Starting a local development server

$ git clone https://github.com/DrejT/forum-page/
$ cd client  # change to client directory
$ npm run dev  # start the local server

now, the visit http://localhost:5173

steps to create your own branch:

$ git branch  # list down all the local branches the current branch has a *
$ git branch <my_new_branch_name> # creates a new branch
$ git checkout <branch_name>   # switches your branch to the specified branch

this is how you can work with branches locally while developing

NOTE

If you already have a remote branch that you want to develop on then use the command below

$ git clone https://github.com/DrejT/forum-page  # clone the repo
$ git switch <remoteBranchName>  # switch to the remote branch

pushing changes

don't push to the main branch, instead create a new branch, develop on it. For pushing those changes to your the github repository follow the below steps as per your case

If you want to develop on a different remote branch please follow the note above

$ git push origin branchName  # use this if your local branch name and remote branch name are the same
$ git push origin localBranchName:remoteBranchName  # use this if the local branch name and remote branch names are not the same

Releases

No releases published

Packages

No packages published