This is the backend repository for the ACM Officer Database
- Clone the repository and install the dependencies:
$ git clone https://github.com/acmutd/officer-database-backend.git
$ cd officer-database-backend
$ npm install # Or yarn installCaution
Do not ignore this step
- Open your Firebase project settings
- Go to the tab that says "Service accounts"
- Select the Node.js option, then click on the bright blue button that says "Generate new private key" then click Generate key in the modal.
- It'll download a file containing all the login credentials for the SDK, move the file to the top level directory of the repository and rename it to
firebase-creds.json.
- Start the development server
$ npm run devTip
This isn't needed to run the repository, but it's always good to run tests to make sure everything is working
- Install the REST Client VS Code extension
- Create a new file called
test.rest - Paste this into the file:
### GET OFFICERS
GET http://localhost:8383/officers
Any tests written in the file should be formatted like that, with a title above each test. The extension will recognize the formatting and insert a "Send Request" button below the title, clicking it will run the test!