GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - diedu89/snacks: Little api to manage a snacks inventory

BranchesTags
Open more actions menu

Latest commit

 

History

62 Commits
62 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
er.jpg
er.jpg
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
schema.sql
schema.sql
 
 

Repository files navigation

Snack Store api

Little api to manage a snacks inventory

How to run

docker and docker-compose are needed to get the enviroment up and running

To start the application just run the following command in a terminal within the project directory

$ docker-compose up

Sequelize will create the corresponding tables to match models and the api will be available at http://localhost:3000

Seed data

In a second terminal enter app container and run command to seed

docker-compose exec --user node web sh
$ ./node_modules/.bin/sequelize db:seed:all

Access database commandline

In a different terminal enter to database container

$ docker-compose exec postgres sh

Once inside just use psql

$ PGPASSWORD=secretsnacks psql -U applaudo -d snacks

Databse schema

Alt text

About

Little api to manage a snacks inventory

applaudo-snacks.herokuapp.com/

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.