Skip to content

Commit

Permalink
rfac: Contributing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yp969803 committed Apr 17, 2024
1 parent 562b8ef commit ae2ff02
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 94 deletions.
124 changes: 124 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Contributing
Contributions of all kind are welcomed

## Run Locally

#### Prerequisites :

- [Git](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup)
- [WSL (only for windows)](https://www.oracle.com/java/technologies/downloads/)
- [Docker](https://docs.docker.com/engine/install/)
- [Github OAuth Application](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app)
With redierect url to http://localhost:3000/login
- [Node](https://nodejs.org/en/download)
- [NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
- [Postgresql](https://www.postgresql.org/download/)
- [Redis](https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/)
- [Jdk-17](https://openjdk.org/projects/jdk/17/)
- [maven](https://maven.apache.org/install.html)


#### Clone the Repo
```
git clone https://github.com/mdgspace/Tracer.git
```
#### Change current folder to project folder

```
cd Tracer
```
### Start postgres and redis servers

### Create postgresql user, password and database

### Create env.sh from env.sh.example


### Install node-modules
```
npm ci
```
### Run Frontend

```
source env.sh
npm start
```

### Run backend

```
source env.sh
mvn spring-boot:run -DskipTests
```

### Testing

Tests for backend is written ./src/test Directories

#### Run tests

```
mvn test
```

## Run using Docker
#### Prerequisites :

- [Git](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup)
- [WSL (only for windows)](https://www.oracle.com/java/technologies/downloads/)
- [Docker](https://docs.docker.com/engine/install/)
- [Github OAuth Application](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app)
With redierect url to http://localhost:3000/login

#### Clone the Repo
```
git clone https://github.com/mdgspace/Tracer.git
```
#### Change current folder to project folder

```
cd Tracer
```

### Create env.list file using env.list.example

### Run docker compose
```
docker compose up
```

## Commit messages
Please start your commits with these prefixes for better understanding among collaborators, based on the type of commit:

```
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 tet, etc etc)
conf: (configurational settings - changing directory structure, updating gitignore, add libraries, changing manifest etc)
About
```

Add in last of commit message (backend) or (frontend) to specify where you have done the changes

ex:
```
chor: Chnge project colour (frontend)
rfac: Get UserApi (backend)
```

## File Structure

- **src/main:** Contains all the backend code
- **src/test:** Contains all the backend tests
- **src/app:** Contains all the frontend application configurations
- **src/features:** Contains all the frontend features
- **src/utils:** Contains all the frontend utilities

## Backend API'S

API's for testing purpose can be found in [thunder-client-collection](thunder-collection_Tracer.json)
94 changes: 0 additions & 94 deletions CONTRIBUTION.md

This file was deleted.

0 comments on commit ae2ff02

Please sign in to comment.