Giter Club home page Giter Club logo

accessapp-backend's Introduction

Inclusive Manchester App - Back End API

Northcoders Group Project - Back End


Built by: The Reactors ☢️ (Mohammed Kabir Dastgir, Lee Kirkham, Matt Shaw, Muhammad Tumi)


Back-End

Front-End (For this Back-End API)


Description

An API for the AccessApp: Built using Node.js, Express.js server and a MongoDB database using 'Mongoose'.

All endpoints can be found in the endpoints.json file or go to https://accessapp-be.herokuapp.com/api/ which lists all endpoints which can be interacted with.

There is a front-end app available for this API, which will allow you to interact with it, available at: https://inclusive-manchester.netlify.app/


Setup Instructions

Installation requirements:

  • Node.js 17.x
  • Mongoose 6.x
  • Express 4.x
  • Dotenv 16.x
  • Nodemon 2.x
  • Jest 27.x
  • Supertest 6.x
  • Cors 2.x
  • Mongoose-type-url 2.x

All other application dependencies are listed in the package.json file, FYI.

Cloning the repositry:

  • In your teminal CLI:
$ git clone https://github.com/leekli/AccessApp-BE.git
$ cd AccessApp-BE

Installing dependencies:

  • Required dependencies will be pulled from the package.json file. In your teminal CLI:
$ npm install

Environment setup:

  • Once the repo has been cloned, you will need to create one .env file in the root folder: with the .env file name.

  • In the .env file you will need to add 3 routes, as such:

    MONGODB_URI=tbc

    DB_CONNECTION_TEST=tbc

    MONGODB_URL=tbc

Database set-up and seeding:

  • Note: Please ensure that you have MongoDB running on your local machine before running the below commands.

  • Before using or testing the application, you will need to set the database up and then seed it with the data, once you receive the prompt that seeding had complete, you will be able to interact with the API through http://localhost:3000 or http://127.0.0.1:3000 locally.

$ npm run dev

Then, wait for the following 3 messages to prompt in the CLI before interacting with the data:

  Now listening to port: 3000
  Now connected to the DEVELOPMENT database...
  Development database is now seeded.

Testing

  • Jest is the framework used to test this application.

  • To run tests:

$ npm test

accessapp-backend's People

Stargazers

Roman avatar

Watchers

Lee 李 avatar  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.