Manage and visualize stock data. Built with the NestJS framework for the backend and React for the frontend.
econochrono-be/
: Contains all backend-related code and configuration.econochrono-fe/
: Contains frontend code.
- Docker and Docker Compose installed on your system.
To spin up the entire application stack (frontend, backend, and database) using Docker Compose, navigate to the root directory, if you're running the services for the first time and want to initialize the database with data, you need to set the INIT_DB to true environment variable. You can do this by running:
INIT_DB=true docker-compose up --build -d
After the DB and data are initialized INIT_DB is not needed:
docker-compose up --build -d
Shutting down with:
docker-compose down
After starting the services, the frontend will be accessible at http://localhost:3000 and the backend API at http://localhost:3001.
- Node.js and npm installed (for local development).
- Local MySQL Database
Navigate to the econochrono-be
directory:
cd econochrono-be/
Then install the necessary dependencies:
npm install
To run the backend service, we need to set up local MySQl DB first and then execute:
npx prisma db push
npm run start
To generate test data:
npm run dataInit
Navigate to the econochrono-fe directory:
cd econochrono-fe/
Then install the necessary dependencies:
npm install
Start the frontend application with:
npm run start