Skip to content

dhirk/FAQ

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is up to date with reisborw/FAQ:master.

Latest commit

Created a seeder file and made it into a script so that we could quickly populate the database in order to make the presentation easier.
e922425

Git stats

Files

Permalink
Failed to load latest commit information.

Frequently Asked Questions

A knowledge-base system about video games where users can post and answer questions.

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

Getting started

Prerequisites

You need to have node and npm installed in your machine

Installing

First things first, here's how to clone the repository:

 git clone https://github.coventry.ac.uk/5001CEM-1920SEPJAN/reisborw.git

After cloning the repository, run the following command in order to install all of the project's dependencies:

 npm install

After that, make sure you create a .env file. This will be where you set your environment variables, such as the port you want the project to run.

For now, all you need to get the project working are two variables, DB_NAME and SERVER_PORT. For example:

SERVER_PORT=8080
DB_NAME=faq.db

Once these steps are taken, you're ready to run the program. Both of the following commands are acceptable:

node index.js

or

npm run start

Running the tests

In this project you can run some different tests. These are:

Unit tests

These tests will make sure every function in the project are working and throwing the appropriate errors when wrong data is provided. In order to achieve that, simply run:

npm run test

If you would like to see how long each individual test takes to run, simply run:

npm run test-verbose

Acceptance tests

We also provide acceptance tests. These tests serve as a tool to make sure everything is also working in terms of UI. The following command will run these tests:

npm run cucumber

JSDocs

We provide an easy way of creating and seeing documentation. By running the following command a new folder, docs will be generated. In that folder, you will be able to see all the available documentation for the project:

npm run jsdoc

Built With

  • Koa - Web framework

Authors

About

An FAQ website

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • JavaScript 65.8%
  • Gherkin 10.9%
  • CSS 8.4%
  • HTML 8.0%
  • TSQL 6.3%
  • Shell 0.6%