Skip to content

A semester project for CSCI 3308 - Software Development Methods. Taskit aims to connect users and blue collars. The app includes functional services such as payment using Stripe API. Website link is in GitHub, expect a cold start.

License

Notifications You must be signed in to change notification settings

josh-truong/Taskit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3308SP21_011_6 - TaskIt

A React/NodeJS marketplace to facilitate short term free-lance work for small jobs and tasks.

Setting up the project

There are 3 separate pieces to this project. You can run them separately for dev, but you will need to start all three for a completely functional app.

This project uses npm, so you'll need it installed to run locally.

1. Database

This project uses MySQL.

A script to create a database as well as a taskit user is included in the data directory. Install and set up MySQL on your machine. Then, either copy the contents of data/database.init.sql into a MySQL client, or from the command line run mysql -u root -p < data/database.init.sql.

See readme in the data directory for table and column type documentation.

2. nodeJS Back End

The directory code/api contains the source code for a REST api, writen in nodeJS using the express framework, which provides the data access layer of the application. This performs calls to the database.

The application requires environment variables. There is an example provided at code/api/example.env which works for development, however should be renamed. (.env* is gitignored). The values in this are different on the production server.

To run the node app for development, run:

cp code/api/example.env code/api/.env 
cd code/api
npm install
npm start

This will start a nodemon process listening on localhost:3200.

NOTE: YOU MUST HAVE A LOCAL COPY OF THE DATABASE FOR THIS TO WORK PROPERLY

To push to heroku, from the code/api directory run npm run publishHeroku

See readme in the api directory for route documentation.

3. React Front End

The front end of the application is React, and located directly in the code directory.

The application requires environment variables. There is an example provided at code/api/example.env which works for development, however should be renamed. (.env* is gitignored). The values in this are different on the production server.

To run the React app for development, run:

cp code/web/example.env code/web/.env
cd code/web
npm install
npm start

This will start the application on localhost:3000.

To push to heroku, from the code/web directory run:

cp env.dev .env.development
npm run publishHeroku

Version Info

React v17.0.1

node v14.15.5

MySql v8.0.23

About

A semester project for CSCI 3308 - Software Development Methods. Taskit aims to connect users and blue collars. The app includes functional services such as payment using Stripe API. Website link is in GitHub, expect a cold start.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published