Giter Site home page Giter Site logo

swvl's Introduction

Keypoint

. node.js v12.6.0
. npm v 6.9.0
. Express framwork

Getting started

. Clone this repo
. select apis folder
. npm install
. npm start
. npm test

Build the Docker image

. docker build -t swvl .
. docker run -t -p 9000:3000 swvl

Dependencies

. expressjs - The server for handling and routing HTTP requests
. body-parser - This module handling Node.js GET and POST requests.
. helmet - Helmet helps you secure your Express apps by setting various HTTP headers. 
. express-rate-limit - To prevent brute force and DDoS attacks.
. joi use for to validate request
. chai, chai-http, mocha - Use for unit testing
. babel-cli and babel-preset-env to compile code from the commond line
. morgan - Use for log the requests

Application Structure

. swvl/apis/app.js - The entry point to our application.
. swvl/apis/bin/ - app configuration file.
. swvl/apis/routes/ - This folder contains the route definitions for our API.
. swvl/apis/controllers/ - This folder responsible for controlling the flow of the application execution. 
. swvl/apis/helper/ - helping and common methods
. swvl/apis/tests/ - Unit testing
. swvl/apis/postman_collection/ -  Postman collection to test APIs.
. swvl/apis/Dockerfile - For dockerization the app.
. swvl/apis/access.log - This for logging the request.

Data store

    . swvl/data/ - data is store in this folder.

swvl's People

Contributors

mayar1463 avatar

Stargazers

mohammed tarek avatar

Watchers

 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.