React App Setup - Live Site

  • This guide is for setting up a live version of our React app (the map/event system). If you’re looking for the local host setup guide its this way
  • If you want the full process for setting up an entire live platform its here
  1. Set up a Linux Server: Ensure that you have a Linux server, either on a virtual machine, a cloud service provider, or a dedicated server.
  2. Install Meteor: Follow the installation instructions provided in the Meteor documentation to install Meteor on your server.
  3. Clone the Repository: Clone your repository onto your server using the following command:

bashCopy code

git clone -b master --single-branch https://github.com/your-github-username/fl-maps
  1. Configure Git: Set up your Git configuration, including adding the upstream remote. Ensure that you have the appropriate permissions to push changes to the repository.

bashCopy code

git remote add upstream https://github.com/focallocal/fl-maps
git remote -v
  1. Install Dependencies and Run the Project: Navigate to the project directory and install the required dependencies:

bashCopy code

meteor npm install

If you encounter errors related to sass-loader, run the following command:

bashCopy code

meteor npm rebuild node-sass --force

After resolving any errors, start the project:

bashCopy code

npm run start
  1. Create a New Branch: When working on a new feature or making changes, create a new branch for your changes:

bashCopy code

git checkout -b new-feature-name
  1. Make Changes and Run Tests: Make the necessary changes to the code, and before pushing the changes, ensure that all the tests have passed:

bashCopy code

npm test or npm run test-watch
  1. Push Changes and Create a Pull Request: After ensuring that all the tests pass, add, commit, and push your changes to your forked repository. Then create a pull request from your forked repository to the main repository.
  2. Configure a Web Server: Set up a reverse proxy with Nginx to serve your Meteor app on a specific domain.
  3. Install Discourse: If your app requires Discourse integration, follow the steps provided to set up Discourse on your localhost. Make sure it is appropriately configured to communicate with your Meteor app.