After downloading the file from Themeforest, You will find SuperProps.zip file. Then unzip the SuperProps.zip and run the following commands on SuperProps folder to get started with the project.
yarn
// For starting GatsbyJs Server run
yarn gatsby-dev
GatsbyJs server will start in localhost:8000
/packages
/common [All common components and resource]
/Assets
/components
/contexts
/data
/theme
/functions
/landing-gatsby [Gatsby version of the project]
- Lerna (A tool for managing JavaScript projects with multiple packages. https://lernajs.io)
- Yarn Workspace
- React Js and Next Js
- Gatsby Js
- Styled System and Styled Components
- Firebase Deployment.
For deploying your final project you have to build your project first. To build the project you have to follow below procedure.
Run the below command on
yarn gatsby-build
// To check the build version locally run below command
// Not necessary if you don't want to check on your local.
yarn gatsby-serve
If you run yarn gatsby-serve
then the build version the the project will start in localhost:9000
. Navigate to the url you will get your site up and running.
To run the SuperProps Next.js app in docker
yarn next-export
docker build -t superprops/landing-next -f ./packages/landing/Dockerfile .
docker run -it -p 3000:3000 superprops/landing-next:latest
Open http://localhost:3000
To run the SuperProps Gatsby.js app in docker
yarn gatsby-build
docker build -t superprops/landing-gatsby -f ./packages/landing-gatsby/Dockerfile .
docker run -it -p 8000:8000 superprops/landing-gatsby:latest
open http://localhost:8000
We have given now.sh deployment by default. For hosting the project in now.sh first you have to rename gatsby-landing.now.json
to now.json
.
You can change the name according to your project in now.json file like:
{
"name": "your_project_name"
}
Now run below command after building the project.
now
At first, open an account on netlify and go to sites
tab.
Run the below command to make the project netlify deploy ready.
yarn netlify-deploy
After running the above command go to /landing
folder. You will find a out
folder there. Drag
and drop this out
folder on netlify sites
tab. Now after finishing the upload you are ready to go.
If you want to host the gatsbyjs
project, go to your command line and run this command on root directory.
yarn gatsby-build
After running above command go to landing-gatsby
folder. You will find a public
folder
there. Drag and drop this public
folder on netlify sites
tab.