Skip to content

Commit b0b6f0f

Browse files
author
Nicolas Blanco
committed
First commit
0 parents  commit b0b6f0f

File tree

561 files changed

+83022
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

561 files changed

+83022
-0
lines changed

.buildpacks

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
https://github.com/HashNuke/heroku-buildpack-elixir
2+
https://github.com/gjaldon/heroku-buildpack-phoenix-static

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# App artifacts
2+
/_build
3+
/db
4+
/deps
5+
/*.ez
6+
releases
7+
.DS_Store
8+
9+
# Generated on crash by the VM
10+
erl_crash.dump
11+
12+
# Generated on crash by NPM
13+
npm-debug.log
14+
15+
# Static artifacts
16+
/assets/node_modules
17+
18+
# Since we are building assets from assets/,
19+
# we ignore priv/static. You may want to comment
20+
# this depending on your deployment strategy.
21+
/priv/static/
22+
23+
# Files matching config/*.secret.exs pattern contain sensitive
24+
# data and you should not commit them into version control.
25+
#
26+
# Alternatively, you may comment the line below and commit the
27+
# secrets files as long as you replace their contents by environment
28+
# variables.
29+
/config/*.secret.exs

.iex.exs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Ecto.Query
2+
3+
alias Decimal, as: D
4+
5+
alias Ecto.Changeset
6+
7+
alias Shopix.{Repo, Admin, Schema, Front, Mailer}
8+
alias ShopixWeb.Email
9+
10+
use Timex

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10.15.3

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: MIX_ENV=prod mix phx.server

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Shopix
2+
3+
To start your Phoenix server:
4+
5+
* Install dependencies with `mix deps.get`
6+
* Configure your database access by editing `config/dev.exs`
7+
* Create an Uploadcare.com account
8+
* Create and migrate your database with `mix ecto.create && mix ecto.migrate`
9+
* Install Node.js dependencies with `cd assets && npm install`
10+
* Start Phoenix endpoint with `mix phx.server`
11+
12+
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
13+
14+
Ready to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment).
15+
16+
## Learn more

assets/brunch-config.js

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
exports.config = {
2+
files: {
3+
javascripts: {
4+
joinTo: {
5+
"js/front.js": /^(js\/front)|(node_modules)/,
6+
"js/admin.js": /^(js\/admin)|(node_modules)/,
7+
"js/vendor/admin.js": /^(js\/vendor\/admin)/,
8+
"js/vendor/front.js": /^(js\/vendor\/front)/
9+
},
10+
order: {
11+
before: [
12+
"js/vendor/admin/jquery.js",
13+
"js/vendor/admin/tether.js",
14+
"js/vendor/admin/bootstrap.js",
15+
"js/vendor/front/jquery.min.js",
16+
"js/vendor/front/popper.min.js",
17+
"js/vendor/front/bootstrap.min.js"
18+
]
19+
}
20+
},
21+
stylesheets: {
22+
joinTo: {
23+
"css/front.css": "css/front/app.scss",
24+
"css/admin.css": "css/admin/*.css"
25+
}
26+
},
27+
templates: {
28+
joinTo: "js/app.js"
29+
}
30+
},
31+
32+
conventions: {
33+
// This option sets where we should place non-css and non-js assets in.
34+
// By default, we set this to "/assets/static". Files in this directory
35+
// will be copied to `paths.public`, which is "priv/static" by default.
36+
assets: /^(static)/
37+
},
38+
39+
// Phoenix paths configuration
40+
paths: {
41+
// Dependencies and current project directories to watch
42+
watched: ["static", "css", "js", "vendor"],
43+
// Where to compile files to
44+
public: "../priv/static"
45+
},
46+
47+
// Configure your plugins
48+
plugins: {
49+
babel: {
50+
// Do not use ES6 compiler in vendor code
51+
ignore: [/vendor/, /node_modules/]
52+
}
53+
},
54+
55+
modules: {
56+
autoRequire: {
57+
"js/admin.js": ["js/admin/app"],
58+
"js/front.js": ["js/front/app"]
59+
}
60+
},
61+
62+
npm: {
63+
enabled: true
64+
}
65+
};

assets/css/admin/app.css

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* This file is for your main application css. */
2+
3+
.image-preview-multiple ._list {
4+
padding-top: 20px;
5+
}
6+
7+
.image-preview-multiple ._item {
8+
padding: 0 0 10px;
9+
display: inline-block;
10+
text-align: center;
11+
vertical-align: top;
12+
width: 100px;
13+
word-break: break-word;
14+
font-size: 12px;
15+
line-height: normal;
16+
}
17+
18+
.image-preview-multiple ._item img {
19+
display: block;
20+
width: 80px;
21+
height: 80px;
22+
padding: 0 10px 6px;
23+
}
24+
25+
.small-margin-top {
26+
margin-top: 8px;
27+
}
28+
29+
img.langs {
30+
cursor: pointer;
31+
padding-left: 0.2em;
32+
padding-right: 0.2em;
33+
}
34+
35+
img.langs.active {
36+
border: 2px solid gray;
37+
}

0 commit comments

Comments
 (0)