Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
YiwenDong98 Revert "Merge branch 'master' into admin_console"
This reverts commit d644604, reversing
changes made to 78efb6d.
Latest commit 6cb9409 Aug 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Design
e2e
nodesrc
src
.editorconfig
.gitignore
Profile.jpg
README.md
Register.jpg
Sign in.jpg
Strains.jpg
User search and follow.jpg
angular.json
package-lock.json
package.json
server.js
tsconfig.json
tslint.json

README.md

webdev_team_project

This project is a collaborative effort required for Web Dev

We have the server and client in one repository for ease of uploading to git & heroku.

This project centres around marijuana strains and their relative effects. Visitors have the ability to:

• Register • Login • Search for Strains • added functionality to come in due course...

On either system, Mac, Windows, you need to go to this strains website where we got our API from and click 'get a key'. Copy the key you received.

Mac

Mongo database:

Navigate to the folder through terminal and type:

$ mongod

Node server:

Open a new terminal tab, in the same directory, type the following: $ npm run-script heroku-postbuild $ EVANBUSSE_APIKEY={YOUR KEY FROM http://strains.evanbusse.com/} npm start

This begins the server and generates dist file.

Client side:

Open a new tab in the same directory and type the following to open on localhost:4200:

$ ng serve

Windows

Start server on windows, don't forget to "SET EVANBUSSE_APIKEY=$$" to set the api key replacing $$ with the actual api key before doing npm start.

Search for a strain contain letter b

Search for a strain contain name afpak

Search for a strain with name that doesn't existe

You can’t perform that action at this time.