Code Monkey home page Code Monkey logo

cc27-project-wings's Introduction

cc27-project-wings

This is a project to create a Code Chrysalis social network.

Available Scripts

npm start Runs the app in the development mode

Dependencies

React, React-Routes, Express, Knex, PG,

Dev Dependencies

Nodemon

Setup

Run npm install

Database Setup

Database schema is located here: /resources/db_schema.png

These instructions assume Postgres v 14.4 or later is installed.

First create the wings database from the command line by typing: createdb wings

Then connect to the newly created db: psql -d wings

You should get some output that looks like this:

psql (14.4)
Type "help" for help.

wings=#

At the psql prompt create a user called 'wings' by entering: CREATE USER wings;

If you get this message, then your user has been set up successfully: CREATE ROLE

Now that your database is set up, run npm run migrate-latest to create the tables, and npm run seed-data to populate seed data. The seed scripts can be run over and over to restore to the original seed data. If however, you need to re-run the migration, run the following command.

psql -d wings -f ./db/reset_migrations.sql

Then you can re-run npm run migrate-latest.

Front-end

Front-end Created with React/HTML/CSS.

Created Routes with -- "import { BrowserRouter, Routes, Route } from "react-router-dom";

This lets the developer create links between pages. Please see "https://reactrouter.com/docs/en/v6" for a detailed explanation on how to run this.

cc27-project-wings's People

Contributors

91pudge avatar jonlld avatar noxxaz avatar takashicc avatar takhof avatar

Forkers

takashicc

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.