Giter VIP home page Giter VIP logo

Project NISEI Site

The Project NISEI site has been built in Laravel 5.5 and the core project code was generated using QuickAdminPanel.

To set the site up in a dev environment you will need a full LAMP stack set up, if you don't already have this available I'd recommend using Scotch Box, a Vagrant box which should come with everything you need already installed (although any other setup should work fine as long as you can run Laravel). Scotch Box comes with it's own set up instructions to get everything in place (VirtualBox, Vagrant, Scotch itself). Once this stack is fully set up and Vagrant is booted, you should be able to view the scotch box landing page at your local scotch box ip (default: http://192.168.33.10).

This project is built on top of scotch so to get in sync you can: git remote rm origin git remote add origin [[this repo]] git fetch git pull origin master

From there you can ssh into Vagrant with vagrant ssh and navigate to /var/www/ which is the web root of the server and reflects the contents of your project folder on your machine. The site is now installed but must be configured to run.

  • Set up .env (as a copy of .env.example) with your local environment details, including database logins that are included in the Scotch Box docs
  • run composer install (this will install a lot of stuff, especially if you haven't got many php packages in cache)
  • run php artisan key:generate
  • run php artisan vendor:publish and select all
  • run php artisan migrate to populate the databases with tables
  • run php artisan db:seed to populate the default user and roles

At this point the site should be functional (although missing styles on the front end). You can proceed to /admin and login with the default user, [email protected] - password to access the back end of the site. To acquire styles and js you can then.

  • run npm install
  • run npm run build:sass
  • run npm run build:js

If you have issues with node-sass at this point, those can potentially be resolved by running npm install --unsafe-perm -g node-sass. Any issues beyond that can be debugged as a group in Slack.

Once everything is up and running, pull requests can be made to the main repo (on a feature branch) and deployed to live once reviewed.

Docker instructions

Ensure that you have docker and docker compose installed

Start containers with

docker-compose up

composer install can be run using the following command

  • docker run --rm -v $(pwd):/app composer install --ignore-platform-reqs --no-scripts (MacOS/Linux)
  • docker run --rm -v %cd%:/app composer install --ignore-platform-reqs --no-scripts (Windows)

The commands below composer install can be run by prefixing the command with docker-compose run app . This will execute the command in the app container.

Site will be available at http://localhost:8081.

NISEI's Projects

netrunnerdb icon netrunnerdb

v2+ version of netrunnerdb. Our card database, API and deckbuilding site.

nginx-proxy icon nginx-proxy

nginx config for hosting multiple apps on a single server.

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.