Skip to content

Web application for creating lofi beats using neural nets.

Notifications You must be signed in to change notification settings

dabangarang/lofi-labs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lofi Labs - A Machine Learning and Web Development Project

Team: Olivier Gabison, Joo Jang, Si Woo Park, Caedon Hsieh

Machine Learning Lead: Daniel Bang

Full-Stack Development Lead: Elise Lee


Direct questions related to the README instructions below to Elise!

Development Guide

Front End Development

The front end is built in React 16.12.0. To start your front end local development environment:

  1. Go to the lofi-frontend folder, usually by typing the following into your command line: cd lofi-frontend
  2. Start the development server: npm start
  3. Go to http://localhost:3000 to view it in the browser

Back End Development

The back end is in Python 3 using Flask.

First-time development: Setting up virtual environment

A virtual environment is an isolated copy of Python that lets you work on one project without worrying about changes globally that may affect other projects. Packages installed in your virtual environment will not affect the global Python installation.

  1. Go to lofi-backend: cd lofi-backend
  2. Create virtual environment: virtualenv mypython
  3. Activate virtual environment: source mypython/bin/activate
  4. Install requirements into virtual environment: pip3 install -r requirements.txt

From now on, just make sure you are in your virtual environment when developing in lofi-backend.

  • To activate virtual environment: source mypython/bin/activate
  • To deactivate virtual environment: deactivate

Running Back End Server Locally

  1. Make sure you are in the lofi-backend folder: cd lofi-backend
  2. Set FLASK_APP environment variable to server.py, the location of the Flask server. For MacOS: export FLASK_APP=server.py
  3. Run flask server: flask run
  4. Go to http://127.0.0.1:5000/ to view in browser

Pull Requests Procedure

To make a change to this repository, open a pull request - make sure you are not pushing directly to master! First, your code changes should be on a branch (ex, "elise-icons-update") other than master. To create a pull request:

  1. Click on the "Pull requests" tab from the lofi-labs repo in Github
  2. Click "new pull request"
  3. The base branch should be "master," and the compare branch should be your branch (ex, "elise-icons-update").
  4. Click "create pull request" and review the changes you are proposing to make sure only your intended changes are present.

About

Web application for creating lofi beats using neural nets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • C 1.3%
  • JavaScript 0.5%
  • CSS 0.1%
  • Shell 0.1%
  • C++ 0.1%