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.
- Clone the repository.
- Install dependencies.
npm install
- Run development server at
localhost:3000
.
npm run dev
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.
- Create a MongoDB cluster.
- Clone
.env.local.example
. - Paste your connection string as the value of
MONGODB_URI
.
MONGODB_URI=<CONNECTION_STRING>
- Save the file as
.env.local
.
You may then run the server and import the data into your cluster.
- Run development server at
localhost:3000
.
npm run dev
- 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.
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.
All copyright and credits, including album artworks and intellectual propreties, go to my little airport.