yarn install
Next, you need to create the MySQL database for the application. Run the following commands:
- Make the database creation script executable:
chmod +x scripts/create_database.sh
- Run the script to create the database:
./scripts/create_database.sh
This script will create a new MySQL database named inkvi_images_store.
Once the database is set up, build the application:
yarn build
Then run the database migrations to create the necessary tables:
yarn migration:run
With the database set up and migrations applied, you can now start the NestJS application:
yarn start:dev
The application should now be running on http://localhost:3000.
-
Environment Variables: Ensure that your .env file is properly configured with your MySQL connection details and other necessary environment variables.
-
Testing: You can run tests with the following command:
yarn test
If you encounter any issues during setup, ensure that:
- MySQL is running and accessible.
- Your MySQL credentials in the .env file are correct.
- You've properly installed all dependencies using yarn install.
Feel free to reach out for further assistance!