Skip to content

A collection of all musical publications of the Hong Kong based band my little airport.

License

Notifications You must be signed in to change notification settings

jonathan-lph/mylittleairport

Repository files navigation

my little airport

A collection of all musical publications, including albums, EPs, singles, compilations, and corresponding tracks, of the Hong Kong based band my little airport. Published at mylittleairport.app.

Installation

Basic Installation

  1. Clone the repository.
  2. Install dependencies.
npm install
  1. Run development server at localhost:3000.
npm run dev

Using MongoDB (optional)

Data files are available at src/__data and act as a database for generating the pages. MongoDB (Mongoose) are used as an alternative database to manipulate the files. If you wish to use these specific database functions, additional setup is needed.

  1. Create a MongoDB cluster.
  2. Clone .env.local.example.
  3. Paste your connection string as the value of MONGODB_URI.
MONGODB_URI=<CONNECTION_STRING>
  1. Save the file as .env.local.

You may then run the server and import the data into your cluster.

  1. Run development server at localhost:3000.
npm run dev
  1. Call API localhost:3000/api/import.

Certain functions on Next.js SSG function getStaticProps can be replaced to fetch from MongoDB instead. Example functions are included in src/services/database/*.

For more details on setup, reference MongoDB documentation.

Contribution

Guidelines for contributions will be published soon. Welcome to modify or provide further information to current data at src/__data by submitting a pull request.

Credits

All copyright and credits, including album artworks and intellectual propreties, go to my little airport.