We are about to change the files structure to a more good one for modern file structures
Website | Description |
---|---|
Api | The Restful API |
Config | Config files |
Controllers | The controllers that handle the HTTP requests |
Desktop | Desktop version, ElectronJS |
Grahpql | GraphQL API (not available yet) |
Middlewares | Middlewares of the Back-end API |
Models | Models of the Back-end API |
Passport | Authentication Oauth2.0 of the Back-end API |
Public | Front-end code |
Resources | |
Routes | Routes of the Back-end API |
Views | EJS views for the Front-end |
git clone https://github.com/mouadTaoussi/survey-app.git
cd survey-app
npm install
touch Config/.env && nano Config/.env
NODE_ENV = development
NODE_PORT = 5000
HOST_NAME = localhost:5000
EXPRESS_SESSION_KEY = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
JSON_WEB_TOKEN_SECRET = xxxxxxxxxxxxxxxxxxxxxxxxxxx
GOOGLE_ID = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GOOGLE_SECRET = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LINKEDIN_ID = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LINKEDIN_SECRET = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GITHUB_ID = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GITHUB_SECRET = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DATABASE_CONNECTION = xxxxxxxxxxxxxxxxxxxxxxxxx
FIREBASE_API_KEY = xxxxxxxxxxxxxxxxxxxxxxxxxxxx
FIREBASE_AUTH_DOMAIN = xxxxxxxxxxxxxxxxxxxxxxxx
FIREBASE_DATABASE_URL = xxxxxxxxxxxxxxxxxxxxxxx
FIREBASE_STORAGE_BUCKET = xxxxxxxxxxxxxxxxxxxxx
FIREBASE_PROJECT_ID = xxxxxxxxxxxxxxxxxxxxxxxxx
REDIS_LABS_HOST = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
REDIS_LABS_PORT = 19679
REDIS_LABS_PASSWORD = xxxxxxxxxxxxxxxxxxxxxxxxx
EMAIL_ADDRESSE = xxxxxxxxxxxxxxxxxxxxxx
EMAIL_PASSWORD = xxxxxxxxxxxxxxxxxxxxxx
npm run dev
npm run start