Giter Club home page Giter Club logo

backend's Introduction

UniForum Server

This is the backend server for the UniForum project developed using the MERN stack.

To view the deployment of the server from this repository, visit: https://uni-forum.herokuapp.com/

More Information

To view the UniForum frontend repository, visit: SE701-T5/Frontend

Requirements

The following are required to run the application

  • MongoDB
  • Heroku

The following is required to be installed for running the application locally

  • Node.js

Environment Variables

To run this application, environment variables are required to be set as GitHub repository Action Secrets, and as system variables when run locally.

Application

The following environment variable is required for running the application

PORT = <port>

Database

The following environment variables are required for connecting the application to a MongoDB account

DATABASE_USER = <database-username>
DATABASE_PW = <database-password>
DATABASE_NAME = <application-database-name>
DATABASE_TEST_NAME = <test-database-name>

It is recommended to use a different test-database-name for repository forks and local testing

Deployment

The following environment variables are required for deploying the application using a Heroku account

HEROKU_EMAIL = <heroku-email>
HEROKU_API_KEY = <heroku-api-key>
HEROKU_APP_NAME = <heroku-application-name>

Local Development

Install

The following instruction can be used to install npm dependencies

npm install

Test

The following instruction can be used to test the application

npm test

Run

The following instruction can be used to run the application

npm start

The application should be running locally at http://localhost:<port>

The following instruction can be used to run the application with automatic restarts for local changes

npm dev

Deploy

The following instructions can be used to locally deploy the application to Heroku

heroku create <application-name>
git push heroku main
heroku open

Contributing

To contribute to this project, refer to the instructions laid out in the Contributing Guidelines and Code of Conduct

Further Reading

backend's People

Contributors

r055a avatar kimslor avatar alexmiao7 avatar hiin3d55 avatar christopher-alba 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.