Bookmarks application. If we wrote "marcadores" thinking about macaroni, we would probably write "macarodes" (Vue)
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Alfred cada41db00 Start creating users and authentication 1 gadu atpakaļ
build Add vuejs 1 gadu atpakaļ
config Add vuejs 1 gadu atpakaļ
pgsql Start creating users and authentication 1 gadu atpakaļ
src Update schema 1 gadu atpakaļ
static Add vuejs 1 gadu atpakaļ
test Add vuejs 1 gadu atpakaļ
.babelrc Add vuejs 1 gadu atpakaļ
.editorconfig Prepare for coding - Bulma added - Axios used 1 gadu atpakaļ
.eslintignore Add vuejs 1 gadu atpakaļ
.eslintrc.js Add vuejs 1 gadu atpakaļ
.gitignore Add vuejs 1 gadu atpakaļ
.postcssrc.js Add vuejs 1 gadu atpakaļ
README.md Edit README 1 gadu atpakaļ
index.html Edit and create bookmarks 1 gadu atpakaļ
package-lock.json Add bookmarks component 1 gadu atpakaļ
package.json Add date field to bookmarks 1 gadu atpakaļ

README.md

Macarrodes

Bookmarks manager

⚠ This project is being used for learning and practicing with Vue.js & Postgresql.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Backend

Macarrodes is prepared to connect to a PostgREST backend.

On the pgsql\schema.pgsql file you will find the schema definition, and on the pgsql\fake_data.pgsql you will find fake data to start your development.

You can start a docker container for PostgreSQL with the next command:

sudo docker run -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword postgres

You should be able to access to it using the next command:

psql -h 127.0.0.1 -U postgres

Or, even better, to create the schema by executing the next commad:

export PGPASSWORD=mysecretpassword && psql -h 127.0.0.1 -U postgres -f ./pgsql/schema.pgsql

Then you can fill the DB with fake data:

export PGPASSWORD=mysecretpassword && psql -h 127.0.0.1 -U postgres -f ./pgsql/fake_data.pgsql

Now you only need to create a config file with similar values to these:

db-uri = "postgres://postgres:mysecretpassword@localhost/postgres"
db-schema = "macarrodes"
db-anon-role = "anonymous"
jwt-secret = "yZE1UCdfEbyZAQr2uhSIqTyH3w35Qgkn"

At the end, after downloading the PostREST executable, you will only need to start it using the previous created config file:

./postgrest macarrodes.conf

Now you should be able to access to the backend enpoint from an url like: http://localhost:3000/bookmarks