Giter Site home page Giter Site logo

anthonypecchillo / ego-gala-comics Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10.76 MB

A web app for broadcasting @ego-gala's comics to the world. ๐Ÿข โ†’ ๐Ÿ“ก โ†’ ๐Ÿ›ฐ๏ธ โ†’ ๐Ÿง‘โ€๐Ÿ’ป

JavaScript 0.38% TypeScript 99.62%

ego-gala-comics's Introduction

Ego Gala Comics

A full stack web app built to broadcast @ego-gala's comics to the world! ๐Ÿข โ†’ ๐Ÿ“ก โ†’ ๐Ÿ›ฐ๏ธ โ†’ ๐Ÿง‘โ€๐Ÿ’ป

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Node Version

This application currently uses Node v16.18.0, enforced by .nvmrc.

When it's time to upgrade to a new version, be sure to update:

  1. The .nvmrc file.
  2. The "engine" field in package.json.
  3. The "Project Settings" page in Vercel.

Note: Node v16.18.0 has recently reached End-of-Life.

Deployments (to Vercel) created on or after February 6th, 2024 will fail to build, so we'll need to upgrade to version 18.x by then.

Install Dependencies

Run:

npm install

Environment Variables

Duplicate the .env.example file:

touch .env
cp .env.example .env

Get the values for each variable from a project admin, and fill 'em in!

Development vs Production

When working in your development environment, comment out the first two environment variables.

When undefined:

  • MONGODB_URI defaults to: 'mongodb://localhost/ego_gala_comics'
  • NEXT_PUBLIC_API_URL defaults to: 'http://localhost:3000'

Editor Config

This application was developed with VS Code, and this doc assumes you're using VS Code too.

It's okay if you're not, but you are wrong. You must accept this before moving forward.

โณ Accepting...
โณ Accepting...
โณ Accepting...
โœ… Acceptance complete.

๐Ÿš€ Moving forward.

Make sure that you have the VS Code extensions for ESLint and Prettier installed and configured if you want to experience all of the ๐ŸŒž and ๐ŸŒˆ that come from automatic ESLint and Prettier fixes on save.

Production builds will fail if there are lint errors in your code.

If you're unsure whether or not your linter is working as expected, run:

npm run lint

on the command line.

If you observe linter errors in the CLI output that are not visibly linted in your editor...

...you Dance on the Edge of Doomโ„ข๏ธ. Fix it, or perish!

Install MongoDB

Install MongoDB (Community Edition).

Murphy's Law usually applies to MongoDB installs. Muscle through. ๐Ÿ’ช

Seed Your Dev DB

Adding Records

To seed your Dev DB with the seed data stored in src/db/seedData.json, make sure that MONGOD_URI is commented out in your .env file.

Then run:

npm run db-seed

Running the same command with MONGOD_URI set to the production DB instance will add a duplicate set of seed data to the production DB. (Obviously, don't do this.)

Deleting Records

Perhaps you've decided to update the seed data in src/db/seedData.json.

Before re-seeding the database, make sure to delete all of the records that currently exist.

To delete all records in the database, run:

npm run db-delete-all

Run the Application

Run

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Make Changes

Edit code and save.

The page should auto-update in your browser on save. โœจ

Moar

Most of this is default documentation from create-next-app, with a few extra notes.

Routing

Learn More About Next.js

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Learn More about Deployment on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

ego-gala-comics's People

Contributors

anthonypecchillo avatar melvillian avatar

Watchers

 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.