This project is a React.js application built to provide TDM application.
To get started with this project, follow these steps:
Make sure you have the following installed on your machine:
- Node.js (v18 or higher)
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/Inist-CNRS/tdm-factory.git
-
Navigate to the project directory:
cd tdm-factory/tdm-fe
-
Install dependencies:
npm install
To start the development server:
npm run dev
The application will run on http://localhost:3000
by default. Open this URL in your browser to view it.
The project structure is organized as follows:
public/
: Contains the public assets, HTML template, and favicon.src/
: Contains the source code of the React application.app/
:components/
: Reusable UI components.globals.css
: Global CSS of the application.page.tsx
: Main component where components are assembled.layout.tsx
: Entry point of the application.
generated
: Generated from open api and swagger.json file.
In the project directory, you can run the following scripts:
npm run dev
: Runs the app in development mode.npm run generate-api
: To generate front end api calls from..\tdm-be\swagger.json
file.npm run build
: Builds the app for production to the.next
folder.