|Garrett Mills c81b778c4e||9 months ago|
|Project_Demonstration||9 months ago|
|app||9 months ago|
|config||9 months ago|
|documentation||9 months ago|
|frontend||9 months ago|
|locale||9 months ago|
|test||9 months ago|
|.gitignore||9 months ago|
|DEV-SETUP.md||9 months ago|
|LICENSE||9 months ago|
|README.md||9 months ago|
|Units.flitter.js||9 months ago|
|example.env||9 months ago|
|flaps.json||9 months ago|
|flitter||9 months ago|
|index.js||9 months ago|
|package.json||9 months ago|
|setup.js||9 months ago|
|yarn.lock||9 months ago|
This project has been wired up to use Vue.js to help organize components of the game.
These components are defined in files that end in the
.component.js extension, and are located in the
The entry point for the project is the
index.html. This file contains the basic logic for loading Vue, and adding the game board to the page.
Obviously, we'll flesh out the look-and-feel as we go along. This is just a basic starter for now.
This project uses the Flitter web framework for its API. The API is split into routes, controllers, and models.
The models interface with the database and represent different object-oriented structures in the game (players, teams, users, matchups, &c.)
The routes define which controller methods get called on which endpoints.
The controllers contain the logic for receiving requests and sending responses and will query the models for data.
There are also some
.patch.js classes that contain logic for one-time data patches.
First, install the dependencies:
git clone https://github.com/EECS-448-Battleship/fantasy-fooball-backend app cd app yarn install
Set up the environment config by copying the template
.env file and editing it to match the environment:
cp example.env .env vim .env
Now, run the one time data patches like so:
node flitter shell (flitter) ➤ await require('./setup')(_di)
This will pull in the latest NFL players and their stats and seed the database to get the game ready to play.
Now, start the server:
To regenerate the docs, you need Node.js and the Yarn package manager installed. Then, just:
cd documentation ./generate.sh
The tests are located in the
test directory and are split into
All tests are written expressively using the Mocha testing library.
After installing the Node dependencies, you can run the frontend and backend tests like so:
yarn run test
The files in the
frontend/lib directory are external libraries used in this project.
The backend API uses the following technologies and external libraries: