Finally, time for the fun part – let's get your new application running!
Create a new folder for your project and clone all the repos you were invited to into the project root, eg.
git clone https://github.com/.../server
git clone https://github.com/.../client-react-web
git clone https://github.com/.../client-react-native
git clone https://github.com/.../mission-control
You should now have a folder structure with a server subfolder, mission control and at least one client folder depending on which plan you purchased.
Open up a new terminal window and navigate to the folder where you saved Gravity, go into the server folder and run the following command:
npm run setup
Gravity will also rename the client folders to client and app and install the packages for the server and client(s).
If you experience any issues during this process; you can run a manual install using the following commands.
Once installation has completed, Gravity will start the server and client and open a new browser window with the homepage, please navigate to http://localhost:3000/setup.
If you have any problems during setup, you can manually config your application in the /config folder.
If you're using MongoDB, you will need to run the seed file manually:
Once you have completed these steps, you must restart your node server.
Use the following command to run both the server and client. Use this from now on any time you want to run your application.
npm run dev
You MUST remove the setup files from your install after setup. Failing to do so, will let anyone access the setup process.
You can use the cleanup script to automate this for you:
npm run cleanup
If you want to remove the files manually:
- /client/src/views/setup folder
- remove the setup import from /server/api/index.js
- the setup route import in /client/src/app.js
It's recommended that you run npm audit in each installation folder to ensure third-party packages are up to date and secure.