Giter Site home page Giter Site logo

algorepo's Introduction

algo-repo

A website hosting a repository of algorithms which users can use and publish

Build Status FOSSA Status

Getting Started

This project uses Vue.JS and Nuxt.JS for the frontend, and Express.JS for the backend. The database used is MongoDB.

Development

You need Node.JS installed as a prerequisite.

Also, you need a MongoDB instance available. You can either roll your own, or use the docker-compose.yml file provided to run one with Docker. If you don't use the docker compose file, make sure to set the MONGODB_URI environment variable.

  1. yarn to install dependencies
  2. yarn run db:seed. This will seed the database. The step is optional and will provide you with a basic user and a basic calculator.
  3. yarn run dev will start the development server with hot reloading - no restarts neccesary (unless you add new dependencies)!

Off you go!

Production

You need Docker installed as a prerequisite.

A Docker image for the web service is publish under dannycjones/dis_web.

You can adapt the docker-compose.yml file for production. Change the web service port if you need to. Here is an example of a docker compose file serving directly onto port 80.

version: '3'

services:
  web:
    image: dannycjones/dis_web
    ports:
      - "80:3000"
    environment:
      - MONGODB_URI=mongodb://mongo/main
    depends_on:
      - mongo
  mongo:
    image: mongo:3.6
    ports:
      - "27017:27017"
    volumes:
      - mongo_data:/data/db

volumes:
  mongo_data:

License

FOSSA Status

algorepo's People

Contributors

dannycjones avatar fossabot avatar

Watchers

 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.