This is the server of File Tracking System implemented for the Smart India Hackathon 2020.
-
Node.js
-
MongoDB
You can find installation instructions according to your system at Download Node.js
You can find installation instructions according to your system at Install MongoDB
-
Clone the repository
-
Click on
Clone or Download
button and copy the link. -
If you have configured
ssh
you can copy SSH Link by clicking onssh
and then copy. -
Clone the repository:
$git clone https://github.com/amritsrivastava/file-tracking-system-server
-
This will create a new folder named
file-tracking-system-server
-
-
Change current working directory to this new folder:
$cd file-tracking-system-server
-
Now install dependencies using
npm install
. -
Start your mongodb server
sudo service mongod start
-
After installation, you can run server by
npm start
-
Your server is running at Secure port : http://localhost:3443, Unsecured port : http://localhost:3000.
-
You can start editing code in your favorite editor.
-
That's it.
The contribution will follow typical git-fork workflow. You can use following steps to keep yourself away from any unwanted pushes to main repository and from git conflicts.
-
Clone the repository (see above instructions)
-
Before starting the development:
-
pull latest changes from origin by using:
$git pull origin master
-
Create a new branch(if not exists) for every feature you work on. (Please follow these instructions for naming branches): For example
$git checkout -b branchName
-
Do regular commits. For one commit, only include files that are changed for only that commit. You can do multiple commits for a feature. Follow these instructions for a good commit message.
-
-
After development:
-
Push your changes to the new branch on origin:
$git push origin branchName #this is same branchName you created in step 2.2
-
Create a pull request. You will see a
compare and pull request
option as soon as you push your changes.
-
You can keep any branch name you want but as a team, there may be a situation where branch names conflict within team members.
To avoid this situation, we will use branch name like following:
username/featureName
Now multiple members can have same branch names but different because of username.
-
Use this IP for calling APIs https://13.233.200.7:3443
-
Admin account details :
{ "email": "admin@gmail.com", "password": "password" }