Giter Site home page Giter Site logo

parawanderer / tinywebstore Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.15 MB

tiny simple PHP (Codeignitor 4) / Bootstrap 5 / Vanilla JS website (a tier 3 app)

License: MIT License

Dockerfile 0.02% PHP 88.34% CSS 0.91% JavaScript 2.19% Hack 0.36% HTML 7.59% SCSS 0.44% Smarty 0.15%

tinywebstore's Introduction

Toy App - "Web Store"

This is a tiny simple PHP (Codeignitor 4) / Bootstrap 5 / Vanilla JS website (a tier 3 app) that I ended up making within the scope of a course I've taken.

I thought it was polished enough (read: visually pretty enough & having enough, though basic, features to explore) to put it up on my personal page, because why not?

Preview

For a set of preview screenshots, please refer to the readme in ./preview/.

Preview Image Set

Running

Prerequisites:

Running:

Ensure there is a ./codeigniter/.env file, derived from ./codeigniter/env. The bare minimum are these properties being set:

database.default.hostname = localhost
database.default.database = app
database.default.username = root
database.default.DBDriver = MySQLi
database.default.DBPrefix =
database.default.port = 3306

Then from the root folder:

cd ./codeigniter
composer install

In the root folder:

docker-compose build
docker-compose up

Initialisation /Seeding

To initialise the database with some basic test data, create a database app (or whatever name was configured in the .env file) in the container and then send a get request to /seed or use the command line seeder as described here

The database (assuming recent version of docker and container running):

docker container exec webprogramming_proj-app-1 mysql -uroot -e "create database app"

Or replace webprogramming_proj-app-1 with the container ID.

The seeder name is AppSeeder. So e.g.

php spark db:seed AppSeeder

Test Accounts (seeded)

Regular user account:

Username: [email protected]
Password: myPassword123

Store owner 1:

Username: [email protected]
Password: anotherPasswrod323

Store owner 2:

Username: [email protected]
Password: anotherPasswrod323

Store owner 3:

Username: [email protected]
Password: anotherPasswrod323

Store owner 4:

Username: [email protected]
Password: anotherPasswrod323

License

MIT

tinywebstore's People

Contributors

parawanderer avatar

Watchers

 avatar

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.