Skip to content

Zetta56/Flipcards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flipcards

Cards

A minimalist flash card website designed for studying, built with the MERN stack.

Requirements

You must have the following installed:

  1. Node.js
  2. npm

Usage

  1. Create the following environment variables in your project's root:

    DATABASEURL=/*Your mongo database's URL*/
    ACCESS_KEY=/*any string you want (long, random string recommended)*/
    REFRESH_KEY=/*any string you want (long, random string recommended)*/
    

    Environment variables can be created either by making a .env file at the root directory or by adding it to your deployment settings if deploying it to a cloud platform, like Heroku.

    If you don't have a mongo database, you can make one on locally or on MongoDB Atlas.

  2. Install all necessary dependencies with npm install.

    Note: You must run npm install in both your root directory and client directory.

  3. Build your front-end client by running npm run build in your client directory.

  4. Start your server with either node server.js or npm start.

Optional - Enable Google OAuth 2.0 by adding the following environment variables, in addition to the variables above:

GOOGLE_CLIENTID=/*Your oauth client id*/
REACT_APP_GOOGLE_CLIENTID=/*Your oauth client id*/

In order to obtain an oauth client id, you can follow these instructions, specifically in the Prerequisites section.

Development

To run this site in a development environment, you must follow these steps, in addition to the ones listed above:

  1. Create the following environment variables in your client directory:

    REACT_APP_BACKEND_URL=/*Your server's URL*/
    REACT_APP_GOOGLE_CLIENTID=/*Your oauth client id*/
    
  2. Run npm start in your client directory whenever you start your site.

About

A minimalist flash card website for studying.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published