Giter Site home page Giter Site logo

bainesface / live-art-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from katieraby/live-art-backend

0.0 1.0 0.0 56 KB

Backend repo for our Live Art - web monetization hackathon project. Created using nodeJS, Express, Mongoose and MongoDB. MIT Licensed.

Home Page: https://live-art-backend.herokuapp.com

License: MIT License

JavaScript 100.00%

live-art-backend's Introduction

Live Art Backend API

Backend RESTful API for Live Art, serving up endpoints relating to storing artist data, logging in, and fetching artist data. Endpoints available:

  • GET /artist
  • POST /artist
  • POST /artist/:username

Getting Started & Installation

Prerequisites

To run this API on your machine, you will need Node.js and MongoDB installed on your machine.

To install Mongo, go to https://docs.mongodb.com/manual/installation/

To install Node, go to: https://nodejs.org/en/download/
The version required is a minimum of v. 13.8.0

Installation

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

  1. Clone a copy of the repository on your machine using the below command:
git clone https://github.com/katieraby/live-art-backend.git
  1. Install the required dependencies:
npm install
  1. For testing, install the required dev dependencies:
npm i -D mocha chai supertest

How to create your dbConfig (required)

To connect to your live mongo database, ensure you set up a config file with your credentials. An example set-up of the file is below (don't forget to gitignore!):

const mongoUsername = "yourmongousername";
const mongoPassword = "yourmongopassword";
module.exports = { mongoUsername, mongoPassword };

Running the Tests

To run the tests written for the API during the TDD process (including tests for error handling), run the following command:

npm run test

Built With

live-art-backend's People

Contributors

katieraby avatar

Watchers

James Cloos 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.