Giter Club home page Giter Club logo

flashcards-be's Introduction

mNeme Back End

The deployed backend is on Heroku.

Getting Started

To run the server locally:

  • Clone the repo
  • npm i to install all the dependencies
  • npm run server to start the server

Tech Stack

The backend was built using:

  • NodeJS
  • ExpressJS
  • Firebase
  • Swagger (for documentation)

Dependencies

  "dependencies": {
    "@firebase/testing": "^0.16.3",
    "cors": "^2.8.5",
    "dotenv": "^8.2.0",
    "express": "^4.17.1",
    "firebase-admin": "^8.8.0",
    "helmet": "^3.21.2",
    "jest": "^24.9.0",
    "swagger-jsdoc": "^3.5.0",
    "swagger-ui-express": "^4.1.2",
    "uuid": "^3.4.0"
  },
  "devDependencies": {
    "mocha": "^7.0.0",
    "nodemon": "^2.0.2"
  }

Endpoint Documentation

All endpoint documentation was done using Swagger and can be found here.

Environment Variables

There are some necessary environment variables for the server to run. These are all for Firebase's Admin SDK so that the server can connect with a Firestore Database.

* SERVICE_TYPE
* SERVICE_PROJECT_ID
* SERVICE_PRIVATE_KEY_ID
* SERVICE_PRIVATE_KEY
* SERVICE_CLIENT_EMAIL
* SERVICE_CLIENT_ID
* SERVICE_AUTH_URI
* SERVICE_TOKEN_URI
* SERVICE_AUTH_PROVIDER_X509_CERT_URL
* SERVICE_AUTH_CLIENT_X509_CERT_URL

Once you have created a Firebase Application to connect to your locally run server you can assign each of the values from your personal Firebase App to these Environment Variables to connect the server to your Firestore.

template-web-backend

run firebase emulators:exec --only firestore 'npm test' in the terminal to run the test files on the firestore emulator

(https://api.codeclimate.com/v1/badges/3a3bae56d35e95f06018/test_coverage)

flashcards-be's People

Contributors

williamberlin76 avatar tthompson082 avatar gcj2 avatar reeceap124 avatar sumeyaali avatar codyylee avatar ronnysalvarado avatar

Watchers

James Cloos avatar

Forkers

rrrbba xami101

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.