This project will include both node and nextjs applications that support each other. To launch both at the same time, docker will be used. Instructions follow these steps:
Docker will build services to create a project run environment
- Runs like current Magento projects. Need service cores from
Mr. Rogerdz - Check the .env file to update environment variables.
- To launch the necessary services run:
docker/bin/up - To launch cli and execute cmd in it then run:
docker/bin/cli - ... (check in folder docker/bin to use cmd)
Node api to create APIs that interact with project data. All source code is in the folder node-api
- Access the
node-apiproject folder. - Run
bash bin/start.shto run service in the background. - Run
bash bin/stop.shto stop service. - By default,
Dockerusespm2to run node app. Check in thebinfolder to usecmdsupport.
All the nextjs project's coded sources are located in the next-app directory.
By default next-app is always started when using docker via pm2.
- Clone the repository.
- Run
docker/bin/upto install all service. - Run
npm installfornext-app&&node-apiapp. - Cd into the
node-apidirectory and runbash bin/start.shorbash bin/stop.shto enable the node service (runnpm installbefore).