Coder Social home page Coder Social logo

damienmauchamp / apple-music-plus-frontend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.06 MB

Stay updated on new music from your favorite artists!

CSS 14.85% TypeScript 83.46% JavaScript 1.69%
apple apple-music apple-music-api backend itunes-api musickit musickit-js musickitjs

apple-music-plus-frontend's Introduction

AM+

Stay updated on new music from your favorite artists!

See also

Run locally

npm install
cp .env.example .env.dev
npm run dev:dev # -- -p 3001

Run on production

npm install # no --production
cp .env.example .env.production
npm run build:production
npm install pm2 -g
pm2 start npm --name "Apple Music Plus - Front" -- run start:production # -- -p 3001
pm2 startup
pm2 save

Update on production

pm2 stop <ID> # OR pm2 stop "Apple Music Plus - Front"
git reset --hard
git pull
npm run build:production
pm2 restart <ID> # OR pm2 restart "Apple Music Plus - Front"

Apache conf

Define APP_URL yourdomain.com
Define APP_LOCAL_URL http://localhost:3000

<VirtualHost *:80>
    ServerName ${APP_URL}

    ProxyPass / ${APP_LOCAL_URL}/
    ProxyPassReverse / ${APP_LOCAL_URL}/

    <Proxy *>
        Require all granted
    </Proxy>

    ProxyPreserveHost On
    RequestHeader set X-Forwarded-Proto "http"
    RequestHeader set X-Forwarded-Port "80"
    RequestHeader set Host "${APP_URL}"
</VirtualHost>

Nginx conf

server {
    listen 80;
    server_name yourdomain.com;

    location / {
        proxy_pass http://localhost:3000; # Replace 3000 with your Next.js app's port
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

apple-music-plus-frontend's People

Contributors

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