ZAIRZA, the robo-sof club of CET, a conglomeration of seasoned developers and designers. Founded in the year 2005, the club has ever since witnessed a synapse of creativity and evolution.
Hosted in Here.
Zairza API can be setup to run via node's default package manager Npm
.
Follow these steps to get the api running using npm
-
Install these dependencies if you don't already have them
-
Clone this repo to your local machine
git clone https://github.com/zairza-cetb/zairza-web/ cd zairza-web npm install
-
Run this command for git hooks setup
git config --local core.hooksPath .githooks/
-
Create
.env
file in the root directory of the project.env
file is used to store the secret or environment variables.touch .env
-
Copy the
.env.example
to.env
cp .env.example .env
-
Fill out the following fields:
-
NODE_ENV
-
FIREBASE_PROJECT_ID
-
FIREBASE_CLIENT_EMAIL
-
FIREBASE_PRIVATE_KEY
-
FIREBASE_API_KEY
-
FIREBASE_MESSAGING_SENDER_ID
-
FIREBASE_APP_ID
-
FIREBASE_MEASUREMENT_ID
-
MONGO_URI
Follow instructions in the comments at the top of
.env
-
-
Install required node packages
npm install
-
Now that we have all the packages, execute the following command to run the server.
-
If you are in production NB: You only have to execute the following command to run the server in future.
npm run start```
-
If you are in development
npm run dev
-
Thank you for your interest in contributing to Zairza. Regardless of the size of the contribution you make, all contributions are welcome and are appreciated.
If you are new to contributing to open source, please read the Open Source Guides on How to Contribute to Open Source.
If you are ready to start contributing code right away, we have a list of good first issues that contain issues with a limited scope.
Code contributions to Zairza come in the form of pull requests. These are done by forking the repo and making changes locally.
The process of proposing a change to Zairza can be summarized as:
- Fork the Zairza repository and branch off
master
. - The repository can be cloned locally using
git clone <forked repo url>
. - Make the desired changes to the source.
- Run the app and test your changes.
- If you've added code that should be tested, write tests.
----+
|
|---- errorHandlers
| |
| +---- error Handlers functionalities
|---- firebase
| |
| +---- firebase functionalities
|---- models
| |
| +---- models functionalities
|---- public
| |
| +---- css
| | |
| | +---- css files for ejs
| +---- images
| | |
| | +---- files with should store as per sections
| +---- js
| |
| +---- js files for ejs
|---- routes
| |
| +---- routes as per user roles
|---- views
| |
| +---- pages
| | |
| | +---- Main pages
| | | |
| | | +---- tabs/sections
| | +---- Other Pages
| +---- partials
| |
| +---- Components
feat: (addition of a new feature)
rfac: (refactoring the code: optimization/ different logic of existing code - output doesn't change, just the way of execution changes)
docs: (documenting the code, be it readme, or extra comments)
bfix: (bug fixing)
chor: (chore - beautifying code, indents, spaces, camelcasing, changing variable names to have an appropriate meaning)
ptch: (patches - small changes in code, mainly UI, for example color of a button, increasing size of text, etc)
conf: (configurational settings - changing directory structure, updating gitignore, add libraries, changing manifest etc)
The Zairza has a Discord server where members can assist with support and clarification. Click here to join our discord server.