Skip to content

sh script, which will create a new npm project with 2 environments

License

Notifications You must be signed in to change notification settings

dandaniel5/newReactCompose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

newReactCompose.sh

sh script, which will create a new npm project with 2 environments (npx + compouse)

To use this script, follow these steps:

Download the create_react_compose_app.sh script. Open a terminal and navigate to the directory where the script is saved. Run the following command: chmod +x create_react_compose_app.sh to make the script executable. Run the script using the following command: bash create_react_copmpose_app.sh When prompted, enter the name of your npm project. If you want to use the current working directory name, press enter. The script will create a new React project using create-react-app. It will then create a Dockerfile with the node:alpine3.17 image. It will create a docker-compose.yml file with volumes that will map your local project files to the container and expose port 3000. Finally, it will create a start.sh file that will start the container and install all the necessary dependencies.

To start the application in the container, you can use the following command:

Copy code docker-compose up -it This will start the container and run the start.sh script, which will install all the necessary dependencies and start the development server.

If you want to run the application locally, navigate to the project directory in a terminal and run the following command:

sql Copy code npm start This will start the development server locally on port 3000. Note that you will need to have Node.js installed on your system in order to run the application locally. image

About

sh script, which will create a new npm project with 2 environments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages