Code Monkey home page Code Monkey logo

ramverk2's Introduction

Build Status Scrutinizer Code Quality Build Status Code Coverage

Ramverk2 – me-page made with Express.js (server)

This repo was made for the course Ramverk2 at Blekinge Tekniska Högskola. It constitutes a me-page, with a chat using socket.io and database CRUD using Mongodb, as well as use of Docker. It was made by Marcus Gustafsson, and can be run locally by following the instructions below.

Clone this repo with

git clone https://github.com/marcusgsta/ramverk2.git

cd ramverk2

You will also need to clone the client into a new directory 'react-frontend'

git clone https://github.com/marcusgsta/redovisa-client.git react-frontend

Install both repos

npm install

cd react-frontend && npm install && npm run build

Install Mongodb or Docker

Choose either to install Docker or Mongodb.

Install Docker according to your operating system: Docker Installation pages

Alternatively you can install Mongodb:

sudo apt-get install -y mongodb

Start Docker Container to run Mongodb database, and run in detached mode:

npm run start-docker

If there is a problem, make sure no other Docker container is running, and if that is the case, stop it:

docker ps
docker stop name-of-your-container

Reset database and fill with default data:

npm run reset-database

Start with

npm start

Test

Test backend with

npm test

Test client with

cd react-frontend && npm test

Test code coverage for client:

npm run test-cov

Test repos in different node environments like this:

npm run test1 # for node 7
npm run test2 # for node 8
npm run test3 # for node 9

This will take some time. When the unit tests are done you will need to press 'Q' to leave the Jest CLI.

Optional: Set port (default: 1337)

DBWEBB_PORT=PORT_NUMBER

ramverk2's People

Contributors

marcusgsta avatar

Watchers

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