Skip to content

axelra82/chas-u04-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DODO the to do app

Not to be confused with the dodo (Raphus cucullatus) near Madagascar in the Indian Ocean.

Requirements

  • PHP (tested on version 7.3.9)
  • MySQL (tested on version 5.7.26)
  • Nodejs and NPM (You will need this to run React)

How to

Make sure your web server is up and running (i.e. PHP works and you have local access to your database).

Clone repo from "chas-u04-todo" to your servers local public html folder, e.g.

cd /path/to/public_html

NOTE: make sure the public html folder is empty before proceeding.

Use "." (dot) to define current folder with git clone ("cloning into an existing directory is only allowed if the directory is empty").

git clone https://github.com/chas-academy/u04-todo-app-axelra82 .

Install dependencies

Run shell npm i (in project folder). This will install all dependencies.

Start app

Once dependencies are installed you can run shell npm run start

Alternatively, depending on your IDE (e.g. if you're using VSC), you can use "play" on "start" under "NPM scripts".

This will start the app on localhost using port 3000

The first time you run the app you will be asked to provide database credentials. When the installer is done the app is ready to use.

Manual installation

If for whatever reason the installer doesn't work, or you prefer to configure the app manually you will need to:

  • Setup database using SQL in create.sql
  • Make sure database settings are correct in configured.json and change "configured" to true (boolean)

Assignment - u04 TO-DO-APP

Requirement highlights:

  • Frontend: Any (React used)
  • Backend: CRUD API using PHP & MySQL
  • Extra: Abillity to create user(s) that can create list(s) with task(s) in relational database

Complete instructions (in swedish)

About

A simple to do app assignment for Chas Academy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published