AidSys is our project which basically takes any institution and all of its assets to cloud. Its digitizing the entire institution to reduce the operation cost and h ence enabling one-and-all present in the institution to make optimum use of the available resources.
-
Visual Studio Code[Recommanded]
-
Extension for Visual Studio Code
-
Prettier: Code Formatter
-
npm intellisense: For better suggestions
-
-
Installation of MongoDB Make sure it is properly running on your machine
-
Clone the repository
git clone git@github.com:SusheelThapa/AidSys-Back-End.git
-
Create a file
.env
in root directory -
Add the following lines
JWT_SECRET_KEY="1qazxsw23edcvfr45tgb" BCRYPT_SALT_ROUND=10 DATABASE=aidsys
-
Installing node modules
npm i
-
Run the below command
node populate.js
-
Then, you will see below message on your console.
Successfully connect to mongodb Done
-
Then, exit the program by pressing
Ctrl + C
-
Install
nodemon
globally as it is used to run the project instead ofnode
.npm i nodemon -g
Since, we use
nodemon
while creating most of backend server using nodejs so rather than including in package.json. we have installed it globally
-
Running the project
npm run dev
The project will run at PORT 5000 You need to setup database and environment variable also
These set of rules are to be taken into consideration while doing this project.
I cannot explain why this is useful but when you will continue, you will know your self.
- Class name should be into PascalCase.
- Variable and Function name should be in camelCase.
- Before commiting any changes, make sure to format the code with Prettier.
- The variable name should be chosen such that there won't be confusion on it name and for what it is created.
- The files and directories name should be in lowercase, space shouldn't be used(use underscore(
_
))
-
commit every small detail or change possible.
-
The commit can be divided into two section
- Title
- Description
If you have change alot so that only Title is not able to describe it you can write detail description part
-
Make sure that after reading the commit, reader can get brief info about your changes.
-
It is highly encourage not to upload your file directly using Github instead use Git
-
You can use discussion section
- If you have any doubt
- You want to implement something but you didnot find how to implement that
This will be helpful if you are working in Open Source Project So, why not to pratice via this project
-
If you find anything that is usual while running project, you can create issue and try avoiding to say it using DM