Giter VIP home page Giter VIP logo

researchbase's Introduction

Researchbase

A tool to notify and manage scholars

How to install this application?

1. Install node.js 
2. Install postgresql, make sure postgresql is running on port 5432
3. git clone https://github.com/tlynx538/researchbase
4. cd researchbase/sql-dumps
5. psql -f <the sql dump file name>
6. cd .. 
7. Rename sample.env to .env OR mv sample.env .env   
7. npm install    
7. npm run test // use this to actually run the application
8. Go to http://localhost:8000 to view the application

Current API routes:

GET Requests:

[GET] http://localhost:8000/guides - Shows the list of guides

[GET] http://localhost:8000/guides/type-any-number - Shows a guide by id

[GET] http://localhost:8000/scholars - Shows the list of scholars

[GET] http://localhost:8000/scholars/type-any-number - Shows a scholar by id

Example:

http://localhost:8000/guides/1

http://localhost:8000/scholars/2

POST Requests:

[POST] http://localhost:8000/guides - Adds a guide

[POST] http://localhost:8000/scholars - Adds a scholar

DELETE Requests:

[DELETE] http://localhost:8000/guides/type-any-number - Delete a guide by id

[DELETE] http://localhost:8000/scholars/type-any-number - Delete a scholar by id

Example:
http://localhost:8000/guides/1
http://localhost:8000/scholars/2

Note:

  1. Use Postman to interact with the API requests. Add the following collection to postman link .To test the above API's

  2. Add node.js and postgresql binaries to environment variables.

Future Upgrades: The database connection will be done remotely.

researchbase's People

Contributors

tlynx538 avatar dependabot[bot] avatar

Watchers

 avatar

researchbase's Issues

Authorization Issue: Authenticated Scholar users can access Guides User Account

Assumed being logged in as Scholar or Guide. The User Can Access the pages mentioned in the Core Controllers(both in Guides, Scholars)
The problem lies in the following code
if(req.session.user)
This session variable contains the so-called user ID defined in the database.
Need an alternative strategy to fix this issue

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.