This is a game platform developed using the Angular framework with Node.js and Firestore.
- 1a. [optional] Fork the project
- 1b. Clone the project (or your fork if you did step 1) with
git clone {GITHUB_REPO_URL}
- 1c. Navigate into the project directory
cd game-platform
- 2a. Navigate from the project directory in the hosting directory with
cd hosting
- 3a. Install sub project dependencies with
npm install
- 4a. Duplicate the
src/environments/environment.ts
file and name itsrc/environments/environment.local.ts
- 5a. In the
src/environments/environment.local.ts
replace it with your Firebase config - 6a. Run the sub project (Angular UI) with
npm start
- 7a. Open in the browser
http://localhost:4200
prerequisite Firebase CLI
- 2b. Navigate from the project directory in the functions directory with
cd functions
- 3b. Install sub project dependencies with
npm install
- 4b. ...
- For the Firebase App Configuration
- Goto https://console.firebase.google.com
- Create a new or use an existing project
- Go to "Project Overview" and Add a "Web App" call this as you please for example;
CodeMortals Development
- This will provide the required settings you can copy into your local environment file.
- In
hosting/environments/
, you will find two files, one for a local/staging Firebase instance, and one for production.- Ensure you do not commit this to a GitHub Repository.