akeating / peap Goto Github PK
View Code? Open in Web Editor NEWPEAP - Phoenix Elixir Angular Postgres
PEAP - Phoenix Elixir Angular Postgres
First, thanks for great sample. I was just planned to going on study with this stack.
After I installed all, I could see the first page but login is not working with [email protected]
and foo
. It keep shows 'please try again'
[info] POST /api/token
[debug] Processing by Interface.ApiController.create_token/2
Parameters: %{"email" => "[email protected]", "password" => "[FILTERED]"}
Pipelines: [:api]
[debug] QUERY OK source="users" db=5.4ms
SELECT u0."id", u0."name", u0."email", u0."password_hash", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."email" = $1) ["[email protected]"]
[info] Sent 401 in 6ms
This is the log on terminal. Is there some change on this project?
Hi, nice demonstration. I followed your procedure by upgrading libraries & dependances, but I got a blank screen...in my interface. can you help me please?
here is my webpack.config.js
const path = require('path');
const webpack = require('webpack');
const root = __dirname;
const depsPath = path.join(root, 'deps');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const nodeModulesPath = path.join(root, 'node_modules');
const privStaticPath = path.resolve(root, 'priv', 'static');
const buildPath = path.join(privStaticPath, 'bundles');
const commonPath = path.resolve('web', 'static', 'modules', 'common');
const commonEntryFile = path.join(commonPath, 'common.ts');
const mainPath = path.resolve('web', 'static', 'modules', 'main');
const mainEntryFile = path.join(mainPath, 'main.ts');
module.exports = {
entry: {
common: commonEntryFile,
main: mainEntryFile
},
output: {
path: buildPath,
filename: '[name].js'
},
devtool: 'source-map',
module: {
rules: [
/*
* Typescript loader support for .ts
*
* Component Template/Style integration using `angular2-template-loader`
* Angular 2 lazy loading (async routes) via `ng-router-loader`
*
* See: https://github.com/s-panferov/awesome-typescript-loader
* See: https://github.com/TheLarkInn/angular2-template-loader
*/
{
test: /\.ts$/,
use: [
{
loader: 'awesome-typescript-loader',
options: {
configFileName: 'tsconfig.json'
}
},
{
loader: 'angular2-template-loader'
}
],
exclude: [nodeModulesPath, /\.(spec|e2e)\.ts$/]
},
/*
* Json loader support for *.json files.
*
* See: https://github.com/webpack/json-loader
*/
{
test: /\.json$/,
use: 'json-loader'
},
/*
* to string and css loader support for *.css files (from Angular components)
* Returns file content as string
*
*/
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: ['to-string-loader', 'css-loader']
})
//exclude: [mainPath]
},
/*
* to string and sass loader support for *.scss files (from Angular components)
* Returns compiled css content as string
*
*/
{
test: /\.(sass|scss)$/,
use: ExtractTextPlugin.extract({
use: ['css-to-string-loader', 'css-loader', 'resolve-url-loader', 'sass-loader']
})
},
/* Raw loader support for *.html
* Returns file content as string
*
* See: https://github.com/webpack/raw-loader
*/
{
test: /\.html$/,
use: 'raw-loader',
//exclude: [mainPath]
},
/*
* File loader for supporting images, for example, in CSS files.
*/
{
test: /\.(jpg|png|gif)$/,
use: ['file-loader']
},
/* File loader for supporting fonts, for example, in CSS files.
*/
{
test: /\.(eot|woff2?|svg|ttf)([\?]?.*)$/,
use: ['file-loader']
}
],
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
modules: [__dirname, nodeModulesPath],
alias: {}
},
plugins: [
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
__dirname
),
new ExtractTextPlugin({ // define where to save the file
filename: '[name].css',
//allChunks: true,
})
]
};
I commented the exclude : mainPath
because it throws console's error, && now that's what I get in my console after that:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.