This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express") | |
const logger = require("morgan") | |
require("dotenv").config() | |
const routes = require("./routes") | |
const app = express() | |
app.set("port", process.env.PORT || 8080) | |
app.use(express.json()) | |
app.use(express.urlencoded({ extended: false })) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# FLASK | |
from functools import wraps | |
from flask import Flask, redirect, url_for, request, session, g, render_template_string, flash | |
from werkzeug.security import generate_password_hash, check_password_hash | |
from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String | |
engine = create_engine("sqlite:///app.db", echo=False) |