Git Product home page Git Product logo

switch's Introduction

UofSC Nutrient Study

This project is a for the SWITCH research study by the University of South Carolina. It involves the Comprehensive Food Database that can be seen here.

This project uses the PHP library Symfony.

To run, be sure to install Symfony and Composer.

In general, please follow this to set up the project.

You will need to get all the composer packages. Do this by running composer update followed by composer install NOTE: You may need PHP's xml extension. Install with sudo apt-get install php-xml and then restart apache with sudo service apache2 restart see here. NOTE: You may be able to bypass any issues with composer update by running composer install --ignore-platform-reqs. This is not recommended, however. To make this go faster, install php-curl with sudo apt install php-curl.

VS Code extensions

The following are useful extensions for this project.

  • PHP Intelephense
  • PHPDoc Comment (CTRL + Shift + i to add DocBlocks)
  • PHP Namespace Resolver
  • HTML Snippets
  • JavaScript Code Snippets
  • Symfony Code Snippets
  • Symfony for VSCode
  • Twig
  • Twig Language 2
  • Twig Language
  • Emmet Live

Running

To run the project, run symfony server:start -d

If you run into any problems with the database, make sure you have doctrine: composer require doctrine

You will also likely need to make migrations. php bin/console make:migration php bin/console doctrine:migrations:migrate

You will need to build the assets using npm. Make sure you have all of the required npm assets by running npm i.

There has been an error with the latest versions of npm. See this.

You may need to switch node versions to version 16. You should also have nvm. Install following here

Now to install node 16: nvm install 16

Now you should be able to run npm run build.

switch's People

Contributors

lxaw 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.