https://github.com/tmillich/cornflakes
Webserver with Firebase, Angular and Node.js backend
https://github.com/tmillich/cornflakes
angular cornflakes dotenv firebase node-js
Last synced: 2 months ago
JSON representation
Webserver with Firebase, Angular and Node.js backend
- Host: GitHub
- URL: https://github.com/tmillich/cornflakes
- Owner: tmillich
- License: mit
- Created: 2020-08-21T18:05:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T01:14:35.000Z (almost 6 years ago)
- Last Synced: 2026-01-03T19:05:38.426Z (6 months ago)
- Topics: angular, cornflakes, dotenv, firebase, node-js
- Language: TypeScript
- Homepage:
- Size: 11.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Cornflakes List

This project is an attempt to create a 3-Tier webserver with **Firebase**, **Angular 8** and a simple **node.js backend server**.
https://cornflake.herokuapp.com/
## Architecture
The architecture looks as follows:

I also tried to use no Framework for backend (only for firebase operations).
## Technical Achievements
- **Firebase**
- **Angular Framework:**
- **Backend: Written in Node.JS**
- InputValidation: CornflakeInput will be checked in the Backend as well
- Database Communication
- Using a EventEmitter
- Return multiple status codes to secify the response to the user.
- **Used no Framework for Backend** (only for Firebase operations)
- **Swagger:**
- Show all the HTTPRequest which can be send to the backend (https://cornflake.herokuapp.com/swagger)
- **Normal Login**
- Integrate Email and password login for signed up User
- Use tokens to validate User
- **Google Login**
## Getting Started
1. First of all creat an `.env`-File in root.
You need to set the following environement variables:
```yml
FIREBASE_PROJECT_ID=""
FIREBASE_DATABASE_URL=""
FIREBASE_STORAGE_BUCKET=""
FIREBASE_ADMIN_TYPE=""
FIREBASE_ADMIN_PRIVATE_KEY_ID=""
FIREBASE_ADMIN_PRIVATE_KEY=""
FIREBASE_CLIENT_EMAIL=""
FIREBASE_CLIENT_ID=""
FIREBASE_CLIENT_X509_CERT_URL=""
FIREBASE_APP_API_KEY=""
FIREBASE_APP_AUTH_DOMAIN=""
FIREBASE_APP_MESSAGING_SENDER_ID=""
FIREBASE_APP_ID=""
FIREBASE_APP_MEASUREMENT_ID=""
```
2. Build all different compontens of your Project by executing in root:
```bash
npm run postbuild
```
3. Start the application (Per default it started on Port 8080)
```bash
npm run start
```
## License
This project is under MIT Licensing terms.