Skip to content

carlostighe/vizcat

Repository files navigation

Getting Started with Create React App

This project was bootstrapped with Create React App.

Installation

For python backend it is recommended to install a virtual environment.
Then run pip install -r requirements.txt
For the React app run npm install

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run start-api

Runs the flask api which serves the application and endpoints. The flask api interacts with the database and handles business logic on the backend

npm run start-viz

Runs the react front end

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

Deployment

This application has been deployed on a shared vm using cpanel and passenger. There was no shell access available so the structure of the project reflects working under these conditions. The muuri branch was the initial development branch.

The static folder is initially contained in the build folder and should be left there for the build phase of the application.
Once deployed there was an issue with static url paths so the static folder should be moved out of the build folder.
The working application structure deployed on cpanel looks like this:

📁 app/

  • __init__.py
  • app.py
  • config.py
  • models.py

📁 build/

  • images/
  • asset-manifest.json
  • favicon.ico
  • index.html
  • logo192.png
  • logo512.png
  • manifest.json
  • robots.txt

📁 logs/

  • passenger.log

📁 static/

  • 📁 css/
    • react built css files
  • 📁 js/
    • react built js files
  • 📁 media/
    • react built media files

📁 tmp/
.htaccess
passenger_wsgi.py
requirements.txt

About

visual catalogue for storing and sorting images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published