Giter VIP home page Giter VIP logo

team_titans_backend_js's Introduction

Team_Titans_BackEnd_Js

To Contribute...

  1. Create a personal fork of this repo on your Github.

  2. Clone the fork on your local machine (pc) . using "git clone url of the repo." Once you have cloned your remote on Github is called origin.

  3. On your local machine (pc) inside the cloned project, add the origin repository as a remote called upstream. i.e git remote add upstream url of the repo.

  4. Create a new branch to work on. Branch from the master branch. It is recommended that you make a new branch for every new feature you work on and work from there. You can use "git checkout -b name of new brach" shorthand to create a new brach and switch to it .

  5. Push your branch to your fork Github, i.e the remote origin.

  6. From your fork open a pull request in the correct branch. Target the project's master branch.

  7. Be sure to always pull upstream changes into your local repository to keep updates of the main repo.

"git pull upstream branch_name" which is the main branch (master).

These are the set of instructions from Mark.

Try and always:

  1. Comment your codes properly.

  2. Follow the code style of the project including indentation.

GOOD LUCK...

Getting started After Cloninig

HNG task-3 : A dockerized microservice for sending sms notification and checking sms balance

Features

Software Requirements

  • Node.js 8+
  • MongoDB 3.6+ (Recommended 4+)

Getting started with the Server

Install npm dependencies after installing (Git or manual download)

npm install

Setting up environments

  1. You will find a file named .env.example on root directory of project.
  2. Create a new file by copying and pasting the file and then renaming it to just .env
    cp .env.example .env
## Common setup

Clone the repo and install the dependencies.

```bash
git clone https://github.com/Elikdev/Team_Titians_task3.git
cd Team_Titians_task3
npm install

To run locally:

Step 1: Set your .env variables

ACCOUNT_SID=twillioaccountsid
AUTH_TOKEN=twilioaccountauthtoken
TWILIO_NUMBER=twilionumber
MONGOURI=databaseurl

Step 2: Run the script

npm run devStart

Use Docker

To run this app as a docker container, you must have docker installed on your computer:

Step 1: Clone the repo

git clone https://github.com/Elikdev/Team_Titians_task3.git

Step 2: Set your enviroment variables

ACCOUNT_SID=twillioaccountsid
AUTH_TOKEN=twilioaccountauthtoken
TWILIO_NUMBER=twilionumber
MONGOURI=mongodb://mongo:27017/smsapp

Step 3: Run the Docker container locally:

docker-compose up

Tests

Running Test Cases

npm test

You can set custom command for test at package.json file inside scripts property. You can also change timeout for each assertion with --timeout parameter of mocha command.

Creating new tests

If you need to add more test cases to the project just create a new file in /test/ and run the command.

ESLint

Running Eslint

npm run lint

You can set custom rules for eslint in .eslintrc.json file, Added at project root.

team_titans_backend_js's People

Contributors

biggaji avatar ceofred avatar elikdev avatar shina1 avatar adesire avatar vicradon avatar rexthecoder avatar dependabot[bot] avatar oluwashane avatar udohahanor avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.