Giter Club home page Giter Club logo

countdownserverside's Introduction

Required to start backend:
	Vagrant
	VirtualBox

Once you have Vagrant installed and working, do `vagrant up` in the base directory to start the server.

Next you can access the server via `vagrant ssh`.
	All files in the project folder are in /vagrant.
	To provision the server(update so you can use Flask, etc) please do `cd /vagrant; sudo ./bootstrap.sh`
		This may break due to what appears to be some invisible characters. in that case, just run the individual commands from bootstrap.sh individually.

When you want to shut down the VM, use `vagrant halt` and NOT `vagrant destroy`, we don't want to waste time provisioning more than once.

IN THE TOP LEVEL DIRECTORY:
Start the rest API/server with `python RestEntry.py`.

The SQLite database is file based and needs no setup besides initializing with `python setUpDB.py`

UNIT TESTS:
First, run setUpTestDB.py to populate the test database. Then you can run the unit tests in TestDBResources.py.

Functional Tests/Code Coverage:
	Similarly, run setUpDB.py to set up the database in order to run the functional tests in APITest.py.
	
	To run coverage, we have set up a makefile with commands. This will require two terminals
	1. `make cover` to start Flask
	2. `python APITest.py` in another terminal to run the functional tests
	3. CTRL+C in the terminal 1 to stop the Flask server and finish covering
	4. `make report` to generate coverage html files in ./htmlcov

	The index file is ./htmlcov/index.html

countdownserverside's People

Contributors

saw106 avatar helloleah avatar yourgamesbeover avatar

Watchers

 avatar  avatar Coursin Hill avatar

countdownserverside's Issues

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.