This repository contains a music store application built with TypeScript. The application consists of two main parts:
- API: A RESTful API built with Express.js that provides endpoints for managing music store data, such as genres, albums, and users.
- Web: A web application built with Next.js that allows users to browse and interact with the music store.
To get started with the API part of the project, follow these steps:
-
Install dependencies: Navigate to the
api
directory and run the following command to install the required dependencies:cd api npm install
-
Start the development server: Run the following command to start the development server:
npm run dev
The API server will be running at http://localhost:3200.
-
API Documentation: The API documentation is available at http://localhost:3200/api-docs.
To get started with the web part of the project, follow these steps:
-
Install dependencies: Navigate to the
web
directory and run the following command to install the required dependencies:cd web npm install
-
Start the development server: Run the following command to start the development server:
npm run dev
The web application will be running at http://localhost:3000.
-
Open the application: Open http://localhost:3000 with your browser to see the result.
-
Edit the application: You can start editing the page by modifying
pages/index.tsx
. The page auto-updates as you edit the file. -
API routes: API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in
pages/api/hello.ts
. -
Learn more: To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
-
Deploy on Vercel: The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js. Check out the Next.js deployment documentation for more details.