GithubHelp home page GithubHelp logo

pascalcoin.org's Introduction

PascalCoin.org

Website for PascalCoin.org.

Installation

You need PHP >= 7.1 and a running mysql server.

# clone repo
git clone $repo-url folder

cd folder

# install php dependencies
composer install

# copy .env.example
cp .env.example .env

Edit the following values in the .env file:

DB_* - connection to the database, should be self explanatory.

APP_DEBUG - true for dev, false for production

MAILCHIMP_* - MailChimp settings

MAIL_FROM_* - Sender data for emails.

MAIL_* - Email settings.

Now generate an encryption key for sessions.

php artisan key:generate

Migrate the database:

php artisan migrate

Fetch CMC data once so we have "something":

php artisan pascal:dumpcmc

Setup a cron. This will periodically pull coinmarketcap data, maybe other stuff later on. Scheduling is done within the application.

* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

Webserver

Webserver configuration can be found here:

https://laravel.com/docs/5.6#web-server-configuration

Development

Run the following commands:

# install javascript dependencies
npm install

# build js on the fly on changes
npm run watch

Change .env settings:

MAIL_DRIVER=log APP_DEBUG=true

# fetch cmc data once
php artisan pascal:cmc
php artisan pascal:pip

# use local php webserver for simplicity
php artisan serve

# open browser (depends on your system)
xdg-open http://127.0.0.1:8000

pascalcoin.org's People

Contributors

hermanschoenfeld avatar pascal-triangle avatar techworker avatar techworkerzandura 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.