Coder Social home page Coder Social logo

snipshots's Introduction

Snipshots

Setup

  1. Add a database link in ./back-end/config/database.js or preferably in an ENV variable.

  2. Run npm install

  3. Navigate into front-end and run npm install

  4. Navigate into back-end and run npm install

  5. If you're on Windows, change the following lines in front-end/package.json:

"build": "NODE_ENV=production webpack",
"dev": "NODE_ENV=development webpack serve --open"

into:

"build": "cross-env NODE_ENV=production webpack",
"dev": "cross-env NODE_ENV=development webpack serve --open"

Make sure you also npm install -g cross-env (globally!) to avoid re-installing this package every time. It also prevents adding an unnecessary dependency to your project.

Starting the server

  1. Navigate into back-end and run npm start and leave that running.
  2. Open a second terminal and run npm run build and then npm run dev
  3. Open http://localhost:3000 to navigate the website.

About the Frontend

Here is the heirarchal structure

|-- App |-- feed.js |-- overview |-- snippetCard |-- post |-- snippet

Most of our frontend uses React and @reduxtoolkitjs. Here is some of the documenentation that we used https://redux-toolkit.js.org/introduction/getting-started.

  1. Post.js uses redux
  2. overview + snippetCard uses react. It might be best to translate these components to redux.

About the Backend

  1. We used MongoDB Atlas for our database and our URI was stored in an env file. Because of this, successors will not have access to the original Database.
  2. You will have to create a new MongoDB Atlas for yourselves and create a .env file inside the backend folder. Assign a variable MONGO_URI in this .env file to your URI (taken from MONGODB). This URI should already include your username, password, and cluster Should look like this

MONGO_URI=mongodb+srv://:@.7ux079m.mongodb.net/?retryWrites=true&w=majority

Notice how variables in .env files do not need declarations!

Stretch Goals

  1. Turning everything into redux
  2. Copy and Paste functionality
  3. Create Users
  4. Implementing OAuth
  5. More tests in TDD

Welcome to Snipshots!

snipshots's People

Contributors

julien-kerekes avatar krisfragata avatar joseph-mcgarry avatar

Stargazers

May Wilcher avatar Dylan Briar 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.