Code Monkey home page Code Monkey logo

big-shop's Introduction

Big Shop

A nextjs static site and a go api

running the app

npm run dev

Requires node 14+

backlog

https://trello.com/b/LnaGkQyG/bigshop

deploying

This is handled automatically by netlify.

The lambda used to connect to planetscale DB. Since they dropped the free tier is connects to TiDB.

local setup

Lots to do here.

  • Setup netlify-lambda package for local dev
  • Configure the app to connect to a local db
  • local env vars

local db

To enter the mysql workspace:

mysql -u root
use bigshop;
  • db user
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin';
GRANT ALL PRIVILEGES ON bigshop.* TO 'admin'@'localhost';

Auth

The API is behind auth and I haven't come up with a nice way of configuring that yet for use via curl/postman. Via the app it's fine. For now I copy an authorization token from the application requests and use that in the auth header. Big todo.

runnning db migrations

I haven't created a decent workflow for this yet :(

I've also been using workbench for dumping the db from prod to local.

useful links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.