Installing Crema

Once you have followed the installation pre-requisite steps, You can follow the following steps to install and run the Crema:-

1. To run the Crema, Open the Crema folder in the editor of your choice. After following the folder, open the terminal and run the following command:-

yarn

this command will automatically install the required dependencies.

If you are using Nextjs version then you need to check this doc

2. Now, run the following command to run the project in the browser.

yarn start

This command will start the project in the browser in development mode i.e. the project will run on localhost://300X URL.

3. To add the project to the live server, you need to make the Build of the project. Run the following command to make the Build of the project.

yarn build

After successful completion of build command, you will find following instructions on the terminal:-

The project was built assuming it is hosted at the server root. You can control this with the homepage field in your package.json. For example, add this to build it for GitHub Pages:

"homepage" : "http://myname.github.io/myapp",

The build folder is to ready be deployed. You may serve it with a static server:

yarn global add serve
serve -s build

Find out more about deployment here

https://create-react-app.dev/docs/deployment/

In case you want to deploy on another server please change accordingly.

Last updated