kena421 / video-call

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navprayas-A Group of Innovative Thoughts ( Main Website Backend )

This will be our official main website

Tech Stack

How to run

Run your code for development

npm start
  • Building your code
npm run build
  • Run production code
npm run production
  • Clean dist folder
npm run clean

Basic Commands

  • Clone a repo
git clone <repo link>
  • Create a new branch
git branch <branch name>
  • Create a new branch and switch to that branch
git checkout -b <branch name>
  • Update local master from remote master(ensuring currently in master branch)
git pull
  • Check remote git remote -v

*Check all branches

git branch -a

*Check remote branches

git branch -r
  • Check local branches
git branch
  • Push you files
git push origin <branch-name>

I think these commands are enough but still you forgot some commands you can take help from here

Contribution Guide

  • Clone Navprayas Backend Repo
git clone https://github.com/Navprayas-A-group-of-Innovative-thought/Navprayas-Backend.git
  • You will see a Navprayas-Backend folder

  • cd Navprayas-Backend

  • Install all dependencies

  • npm install

  • To check your current branch - git branch

    Repeat Point : commands to be reused

  • Now you have been assigned test.

  • Open Github and Create a remote branch in test in origin(remote).

  • Come to your local computer and

  • git checkout test to switch to local test branch (test branch already exists in remote so no need to create).

  • git pull to get changes from remote test branch to your local test branch. Note git pull pulls all changes from (current)remote branch to your current local branch, it does not work necessarily only master branch but is true for all branches.

  • Now do your work.Then add your changes.

  • git add .

  • Then commit your changes.

  • git commit -m "your message"

  • Your commit should answer what this commit will do. Answer should be This commit will "your message".

  • Now push your branch work to Navprayas backend repo. Note you are in test branch.

  • git push will push all your local changes to remote test.

  • Open you github and select branch test

  • Now create a pull request to development branch

  • Then Admin will merge your request to master accordingly.

  • For another issue, first go to Repeat point.

Instructions for Files

  • Write schemas in model and name like user.model.js
  • routes should be in routes folder and name like user.route.js
  • Do not delete sample.route.js ans sample.model.js
  • Learn to use .env and keep only secret info there
  • Keep non secret info in config.js file
  • Comments should in between the codes
  • write there how to use your API in HOWTO.md

Happy Coding !!!

About

License:MIT License


Languages

Language:JavaScript 100.0%