This is a course project for ENSF 619.2 F21.
The purpose of this project is to demonstrate OSS techniques and eventually have a functioning node-based Events RSVP Module.
Please follow these instructions to have a working copy of this project on your machine.
NOTE: You will need a Google account to setup this project
.env
in the root folder of the project and add your DB URL: DB_URL="<your db URL>"
PERMISSIONS="<full path to your permissions file>"
ex. PERMISSIONS="../permissions.json"
npm install -g firebase-tools
firebase login
firebase init functions
firebase init firestore
and use the default values.parser: "babel-eslint",
to the .eslintrc.js filenpm install dotenv body-parser firebase-functions express cors firebase-admin firebase-tools babel-eslint@8 eslint@4.x
npm install
npm run serve
to start the server. Upload firebase-api.postman_collection.json
to Postman.
Update the URL to your Firestore URL (Which can be found on your terminal after starting the server).
Follow the examples provided in Postman, and follow the JSON Schemas found in the folder functions/schema
.
npm run lint
or npm run serve
saying babel-eslint cannot be found, please uninstall eslint
and babel-eslint
and reinstall them: npm install babel-eslint@8 eslint@4.x
npm run serve
to start the server, the Functions emulator starts but the Firestore emulator is not, please open a terminal in the root of the project and run the following command to start the Firebase Emulator Suite:
firebase emulators:start
Contributing
Please see CONTRIBUTING.md for guidelines on contributing to this project, submitting feature requests, issues, and even suggestions on improving the README.md and CONTRIBUTING.md.
Licensing
This project is licensed under the MIT license and is copyright Regina Baher. Please see LICENSE for the full license.