The North Carolina Historic Companion is a web application designed to provide users with an interactive experience of historic sites in North Carolina. The application has two main interfaces:
The application is built using the following technologies:
The frontend and backend communicate via RESTful APIs, ensuring a clear separation of concerns and maintainability.
To install the application, follow these steps:
Clone the repository:
git clone https://github.com/OrangeAed/nc-historic-companion.git
cd NC_Historic_Companion
Install NVM (Node Version Manager): Follow the instructions on the NVM GitHub page to install NVM.
Install the latest version of Node.js and npm:
nvm install node
nvm use node
Install project dependencies:
npm install
To start the application, run the following commands in three seperate terminals. You will need to run these in nc-historic-companion directory for them to work. To see the full commands, look in the package.json file in the nc-historic-companion directory.:
Start the development server:
npm run dev # This will start up the visitor side UI
Start the backend server:
npm run dev:server # This will start up the admin side UI
Start the production build:
npm run start # This will set up the backend server which both sides need to function
These commands will start the application, allowing you to access the visitor and admin interfaces through your web browser.
We welcome contributions to the North Carolina Historic Companion project! To ensure a smooth collaboration, please follow these guidelines:
Fork the Repository: Start by forking the repository to your GitHub account.
git clone https://github.com/your-username/nc-historic-companion.git
cd nc-historic-companion
Create a Branch: Create a new branch for your feature or bug fix.
git checkout -b <feature-or-bugfix-name>
Make Changes: Implement your changes in the codebase. Ensure your code follows the project's coding standards and is well documented.
Commit Changes: Commit your changes with a clear and concise commit message.
git add .
git commit -m "Description of the feature or fix"
Push to GitHub: Push your changes to your forked repository.
git push origin <feature-or-bugfix-name>
Create a Pull Request: Go to the original repository and create a pull request from your forked repository. Provide a detailed description of your changes and any related issues.
npm run lint
to check for any linting errors.If you find a bug or have a feature request, please open an issue on GitHub. Provide as much detail as possible to help us understand and address the issue. Your issue should include a description of the bug, what the intended behaviour should be, and the steps to reproduce the bug.
Thank you for contributing to the North Carolina Historic Companion project!